home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Classes / SocketClasses / doc / wn / SktSocket.wn next >
Unknown  |  1992-03-28  |  21.5 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Wanton Packer Module (music/wantonPacker) ext Supported
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 04 00 53 f2 04 00 07 ae |........|..S.....|
|00000010| 04 00 53 76 04 00 02 0c | 04 00 53 78 00 04 82 24 |..Sv....|..Sx...$|
|00000020| 00 04 82 20 00 04 82 1c | 00 04 82 2c 00 04 82 28 |... ....|...,...(|
|00000030| 00 00 00 00 00 00 00 00 | 00 05 00 00 00 00 00 00 |........|........|
|00000040| 09 00 00 00 00 00 00 00 | 00 00 00 00 02 00 f7 a4 |........|........|
|00000050| 00 34 fa 3f 02 64 00 00 | 0c ee 00 39 00 00 00 00 |.4.?.d..|...9....|
|00000060| 00 00 00 00 00 39 00 00 | 00 00 ff 00 00 00 00 00 |.....9..|........|
|00000070| 00 00 00 00 00 00 01 01 | 02 64 00 00 00 48 00 48 |........|.d...H.H|
|00000080| 00 01 00 18 03 18 02 64 | 00 00 00 00 03 18 02 64 |.......d|.......d|
|00000090| 00 64 00 05 00 00 04 00 | 02 90 00 1a f3 63 00 48 |.d......|.....c.H|
|000000a0| 00 15 04 00 02 90 00 1a | f3 63 00 48 00 15 01 8b |........|.c.H....|
|000000b0| 00 00 14 79 00 00 00 00 | ff 00 00 00 00 00 00 00 |...y....|........|
|000000c0| 56 16 00 00 56 16 00 00 | 56 16 00 00 86 13 00 00 |V...V...|V.......|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 04 00 51 52 | 04 00 07 ae 04 00 53 76 |......QR|......Sv|
|00000110| 04 00 02 0c 04 00 53 78 | 00 04 b0 38 00 04 b0 34 |......Sx|...8...4|
|00000120| 00 04 b0 30 00 04 b0 40 | 00 04 b0 3c 00 00 00 00 |...0...@|...<....|
|00000130| 00 00 00 00 00 05 00 00 | 00 00 00 00 09 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 02 00 f3 12 00 34 f5 ad |........|.....4..|
|00000150| 02 64 00 00 0c ee 00 39 | 00 00 00 00 00 00 00 00 |.d.....9|........|
|00000160| 00 39 00 00 00 00 ff 00 | 00 00 00 00 00 00 00 00 |.9......|........|
|00000170| 00 00 01 01 02 64 00 00 | 00 48 00 48 00 01 00 18 |.....d..|.H.H....|
|00000180| 03 18 02 64 00 00 00 00 | 03 18 02 64 00 64 00 05 |...d....|...d.d..|
|00000190| 00 00 04 00 02 90 00 1a | f3 63 00 48 00 15 04 00 |........|.c.H....|
|000001a0| 02 90 00 1a f3 63 00 48 | 00 15 00 85 00 00 12 55 |.....c.H|.......U|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 53 f2 00 00 |........|....S...|
|000001c0| 53 f2 00 00 53 f2 00 00 | 86 13 00 00 00 00 00 00 |S...S...|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 04 0d 0d 0d 0d 00 04 | 0d 0d 0d 0d 00 82 00 84 |........|........|
|00000210| 00 00 00 01 76 8f 3b d8 | a1 67 84 22 a5 6d ba db |....v.;.|.g.".m..|
|00000220| c8 c4 88 b8 b7 e8 63 75 | 00 31 73 70 00 61 73 69 |......cu|.1sp.asi|
|00000230| 00 74 6e 69 9f bf 41 27 | 38 bd 2c 15 3a c1 78 b2 |.tni..A'|8.,.:.x.|
|00000240| 31 73 b6 f6 cd 9c a3 05 | f6 23 a1 4b de 9b 20 f8 |1s......|.#.K.. .|
|00000250| 29 4d 79 44 99 25 a6 05 | 01 37 77 74 11 b6 12 f2 |)MyD.%..|.7wt....|
|00000260| ed 1f 95 f0 6a d7 52 ff | 4e 93 43 48 dc 21 ef 09 |....j.R.|N.CH.!..|
|00000270| 2f a4 c6 4e c8 c7 88 b3 | ed 7c 74 2c a1 a6 93 28 |/..N....|.|t,...(|
|00000280| f8 99 d3 40 39 31 43 de | 34 4e 86 40 97 86 de 09 |...@91C.|4N.@....|
|00000290| 00 8e fc 00 48 02 1c 00 | 48 00 01 f7 ff 00 14 12 |....H...|H.......|
|000002a0| 01 f7 f6 f6 53 6b 74 53 | 6f 63 6b 65 74 ff 00 15 |....SktS|ocket...|
|000002b0| 12 01 f7 0d ff 00 15 08 | 01 f7 0d fc 00 6c 02 1c |........|.....l..|
|000002c0| 00 6c 00 01 04 80 f7 ff | 00 14 0e 00 f7 49 4e 48 |.l......|.....INH|
|000002d0| 45 52 49 54 53 20 46 52 | 4f 4d 09 4f 62 6a 65 63 |ERITS FR|OM.Objec|
|000002e0| 74 0d ff 00 14 08 00 f7 | 0d ff 00 14 0e 00 f7 44 |t.......|.......D|
|000002f0| 45 43 4c 41 52 45 44 20 | 49 4e 09 53 6b 74 53 6f |ECLARED |IN.SktSo|
|00000300| 63 6b 65 74 2e 68 0d ff | 00 14 08 00 f7 0d ff 00 |cket.h..|........|
|00000310| 14 08 00 f7 fc 00 6c 02 | 1c 00 6c 00 01 f7 0d 0d |......l.|..l.....|
|00000320| 00 25 fc 00 6c 02 1c 00 | 6c 00 01 04 80 f7 ff 00 |.%..l...|l.......|
|00000330| 14 08 00 f7 0d ff 00 14 | 08 00 f7 fc 00 6c 02 1c |........|.....l..|
|00000340| 00 6c 00 01 f7 0d 0d 00 | 5b ff 00 14 0e 00 f7 49 |.l......|[......I|
|00000350| 4e 53 54 41 4e 43 45 20 | 56 41 52 49 41 42 4c 45 |NSTANCE |VARIABLE|
|00000360| 53 0d ff 00 14 08 00 f7 | 0d fc 00 7e 02 1c 00 7e |S.......|...~...~|
|00000370| 00 01 04 80 06 30 f7 ff | 00 14 0e 02 f7 49 6e 68 |.....0..|.....Inh|
|00000380| 65 72 69 74 65 64 20 66 | 72 6f 6d 20 4f 62 6a 65 |erited f|rom Obje|
|00000390| 63 74 ff 00 14 0e 00 f7 | 09 43 6c 61 73 73 09 69 |ct......|.Class.i|
|000003a0| 73 61 3b 0d 00 0f ff 00 | 14 08 01 f7 0d ff 00 14 |sa;.....|........|
|000003b0| 08 01 f7 0d 0d 00 0f ff | 00 14 08 01 f7 0d 0d ff |........|........|
|000003c0| 00 14 08 01 f7 0d 00 0f | ff 00 14 08 01 f7 0d ff |........|........|
|000003d0| 00 14 08 01 f7 0d 0d 00 | 0f ff 00 14 08 01 f7 0d |........|........|
|000003e0| ff 00 14 08 01 f7 0d 0d | 00 0f ff 00 14 08 01 f7 |........|........|
|000003f0| 0d 0d ff 00 14 08 01 f7 | 0d 00 0f ff 00 14 08 01 |........|........|
|00000400| f7 0d 0d ff 00 14 08 01 | f7 0d 00 0f ff 00 14 08 |........|........|
|00000410| 01 f7 0d ff 00 14 08 01 | f7 0d 0d 00 09 ff 00 14 |........|........|
|00000420| 08 01 f7 0d 0d 0d 00 1b | ff 00 14 08 00 f7 0d ff |........|........|
|00000430| 00 14 0e 00 f7 ff 00 14 | 08 01 f7 0d ff 00 14 08 |........|........|
|00000440| 01 f7 0d 00 0f ff 00 14 | 08 01 f7 0d ff 00 14 08 |........|........|
|00000450| 01 f7 0d 0d 00 0f ff 00 | 14 08 01 f7 0d ff 00 14 |........|........|
|00000460| 08 01 f7 0d 0d 00 e2 fc | 00 6c 02 1c 00 6c 00 01 |........|.l...l..|
|00000470| f7 ff 00 14 0e 01 f7 68 | 6f 73 74 6e 61 6d 65 ff |.......h|ostname.|
|00000480| 00 14 0e 01 f7 0d fc 00 | 99 02 1c 00 7e 00 01 05 |........|....~...|
|00000490| 10 f7 ff 00 17 0e 00 f7 | 2d 80 ff 00 14 0e 00 f7 |........|-.......|
|000004a0| 28 63 6f 6e 73 74 20 63 | 68 61 72 20 2a 29 ff 00 |(const c|har *)..|
|000004b0| 14 0e 01 f7 68 6f 73 74 | 6e 61 6d 65 ff 00 14 0e |....host|name....|
|000004c0| 02 f7 0d ff 00 14 08 02 | f7 fc 00 7e 02 1c 00 7e |........|...~...~|
|000004d0| 00 01 05 10 f7 0d ff 00 | 14 0e 00 f7 52 65 74 75 |........|....Retu|
|000004e0| 72 6e 73 20 74 68 65 20 | 68 6f 73 74 6e 61 6d 65 |rns the |hostname|
|000004f0| 20 6f 66 20 74 68 65 20 | 53 6b 74 53 6f 63 6b 65 | of the |SktSocke|
|00000500| 74 27 73 20 63 6f 6e 6e | 65 63 74 20 68 6f 73 74 |t's conn|ect host|
|00000510| 2e ff 00 14 0e 00 f7 0d | ff 00 14 08 01 f7 0d ff |........|........|
|00000520| 00 14 0e 00 f7 53 65 65 | 20 61 6c 73 6f 3a 20 ff |.....See| also: .|
|00000530| 00 17 0e 00 f7 2d 80 ff | 00 14 0e 01 f7 68 6f 73 |.....-..|.....hos|
|00000540| 74 61 64 64 72 65 73 73 | 0d 01 08 fc 00 6c 02 1c |taddress|.....l..|
|00000550| 00 6c 00 01 f7 ff 00 14 | 0e 01 f7 73 ff 00 14 0e |.l......|...s....|
|00000560| 01 f7 6f 63 6b 65 74 ff | 00 14 0e 01 f7 46 64 ff |..ocket.|.....Fd.|
|00000570| 00 14 0e 01 f7 0d fc 00 | 99 02 1c 00 7e 00 01 05 |........|....~...|
|00000580| 10 f7 ff 00 17 0e 00 f7 | 2d 80 ff 00 14 0e 00 f7 |........|-.......|
|00000590| 28 69 6e 74 29 ff 00 14 | 0e 01 f7 73 6f 63 6b 65 |(int)...|...socke|
|000005a0| 74 46 64 ff 00 14 0e 02 | f7 0d ff 00 14 08 02 f7 |tFd.....|........|
|000005b0| fc 00 7e 02 1c 00 7e 00 | 01 05 10 f7 0d ff 00 14 |..~...~.|........|
|000005c0| 0e 00 f7 52 65 74 75 72 | 6e 73 20 74 68 65 20 66 |...Retur|ns the f|
|000005d0| 69 6c 65 20 64 65 73 63 | 72 69 70 74 6f 72 20 6f |ile desc|riptor o|
|000005e0| 66 20 74 68 65 20 53 6b | 74 53 6f 63 6b 65 74 27 |f the Sk|tSocket'|
|000005f0| 73 20 73 6f 63 6b 65 74 | 2e 0d ff 00 14 08 01 f7 |s socket|........|
|00000600| 0d ff 00 14 0e 00 f7 53 | 65 65 20 61 6c 73 6f 3a |.......S|ee also:|
|00000610| 20 ff 00 17 0e 00 f7 2d | 80 ff 00 14 0e 01 f7 69 | ......-|.......i|
|00000620| 6e 69 74 4f 6e 3a ff 00 | 14 0e 02 f7 ff 00 14 0e |nitOn:..|........|
|00000630| 01 f7 6d 61 6e 61 67 65 | 72 ff 00 14 0e 01 f7 3a |..manage|r......:|
|00000640| ff 00 14 0e 02 f7 ff 00 | 14 0e 02 f7 ff 00 14 0e |........|........|
|00000650| 00 f7 0d 00 0f ff 00 14 | 08 01 f7 0d ff 00 14 08 |........|........|
|00000660| 01 f7 0d 0d 00 00 00 78 | 00 03 00 00 00 48 00 48 |.......x|.....H.H|
|00000670| 00 00 00 00 03 18 02 64 | 00 00 00 00 03 18 02 64 |.......d|.......d|
|00000680| 01 5b 05 28 03 fc 00 02 | 00 00 00 48 00 48 00 00 |.[.(....|...H.H..|
|00000690| 00 00 03 18 02 64 00 01 | 00 00 00 64 00 00 00 01 |.....d..|...d....|
|000006a0| 00 01 01 01 00 00 00 01 | 27 0f 00 01 00 01 00 00 |........|'.......|
|000006b0| 00 00 00 00 00 00 00 00 | 01 00 00 02 00 19 01 90 |........|........|
|000006c0| 00 00 00 00 00 40 00 00 | 00 00 00 00 00 00 00 00 |.....@..|........|
|000006d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006e0| 00 66 fc 00 48 02 1c 00 | 48 00 0e 01 b0 05 e8 08 |.f..H...|H.......|
|000006f0| 72 f7 ff 00 14 0c 02 f7 | 43 6f 70 79 72 69 67 68 |r.......|Copyrigh|
|00000700| 74 20 31 39 39 32 20 62 | 79 20 4e 69 6b 20 41 20 |t 1992 b|y Nik A |
|00000710| 47 65 72 76 61 65 09 53 | 6f 63 6b 65 74 20 43 6c |Gervae.S|ocket Cl|
|00000720| 61 73 73 65 73 3a 20 53 | 6b 74 53 6f 63 6b 65 74 |asses: S|ktSocket|
|00000730| 09 fd 00 f7 ff 00 14 0c | 00 f7 0d fc 00 5a 02 0a |........|.....Z..|
|00000740| 00 5a 02 0e f7 0d 0d 0d | 00 64 fc 00 48 02 0a 00 |.Z......|.d..H...|
|00000750| 48 00 0e 01 b0 08 2a f7 | ff 00 14 0c 02 f7 fd 00 |H.....*.|........|
|00000760| f7 09 53 6f 63 6b 65 74 | 20 43 6c 61 73 73 65 73 |..Socket| Classes|
|00000770| 3a 20 53 6b 74 53 6f 63 | 6b 65 74 09 43 6f 70 79 |: SktSoc|ket.Copy|
|00000780| 72 69 67 68 74 20 31 39 | 39 32 20 62 79 20 4e 69 |right 19|92 by Ni|
|00000790| 6b 20 41 20 47 65 72 76 | 61 65 0d fc 00 5a 02 0a |k A Gerv|ae...Z..|
|000007a0| 00 5a 02 0e f7 0d ff 00 | 14 0c 00 f7 0d 0d 00 18 |.Z......|........|
|000007b0| 04 00 02 00 00 38 04 00 | 02 06 00 38 64 00 06 e0 |.....8..|...8d...|
|000007c0| 00 38 64 00 07 48 00 38 | 02 49 ff 00 14 0e 00 f7 |.8d..H.8|.I......|
|000007d0| 54 68 65 73 65 20 63 6c | 61 73 73 65 73 20 61 72 |These cl|asses ar|
|000007e0| 65 20 69 6e 74 65 6e 64 | 65 64 20 74 6f 20 6d 61 |e intend|ed to ma|
|000007f0| 6b 65 20 73 6f 63 6b 65 | 74 73 20 65 61 73 79 20 |ke socke|ts easy |
|00000800| 74 6f 20 75 73 65 2e 20 | 20 48 6f 77 65 76 65 72 |to use. | However|
|00000810| 2c 20 73 65 76 65 72 61 | 6c 20 6d 65 74 68 6f 64 |, severa|l method|
|00000820| 73 20 70 72 6f 76 69 64 | 65 20 77 61 79 73 20 74 |s provid|e ways t|
|00000830| 6f 20 61 63 63 65 73 73 | 20 66 61 69 72 6c 79 20 |o access| fairly |
|00000840| 6c 6f 77 2d 6c 65 76 65 | 6c 20 64 65 74 61 69 6c |low-leve|l detail|
|00000850| 73 20 6f 66 20 73 6f 63 | 6b 65 74 73 20 77 68 69 |s of soc|kets whi|
|00000860| 63 68 20 6d 61 79 20 62 | 65 20 75 73 65 66 75 6c |ch may b|e useful|
|00000870| 20 69 6e 20 73 6f 6d 65 | 20 73 69 74 75 61 74 69 | in some| situati|
|00000880| 6f 6e 73 2e 20 20 46 6f | 72 20 6d 6f 72 65 20 69 |ons. Fo|r more i|
|00000890| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 6f 6e 20 73 6f |nformati|on on so|
|000008a0| 63 6b 65 74 73 2c 20 73 | 65 65 3a 20 74 68 65 20 |ckets, s|ee: the |
|000008b0| 72 65 6c 61 74 65 64 20 | 55 4e 49 58 20 6d 61 6e |related |UNIX man|
|000008c0| 20 70 61 67 65 73 3b 20 | aa 41 6e 20 49 6e 74 72 | pages; |.An Intr|
|000008d0| 6f 64 75 63 74 6f 72 79 | 20 34 2e 33 42 53 44 20 |oductory| 4.3BSD |
|000008e0| 49 6e 74 65 72 70 72 6f | 63 65 73 73 20 43 6f 6d |Interpro|cess Com|
|000008f0| 6d 75 6e 69 63 61 74 69 | 6f 6e 20 54 75 74 6f 72 |municati|on Tutor|
|00000900| 69 61 6c ba 20 28 72 65 | 70 72 69 6e 74 65 64 20 |ial. (re|printed |
|00000910| 69 6e 20 55 4e 49 58 20 | 50 72 6f 67 72 61 6d 6d |in UNIX |Programm|
|00000920| 65 72 27 73 20 53 75 70 | 70 6c 65 6d 65 6e 74 61 |er's Sup|plementa|
|00000930| 72 79 20 44 6f 63 75 6d | 65 6e 74 73 20 56 6f 6c |ry Docum|ents Vol|
|00000940| 75 6d 65 20 31 2c 20 50 | 53 31 3a 37 29 3b 20 6f |ume 1, P|S1:7); o|
|00000950| 72 2c 20 aa 41 6e 20 41 | 64 76 61 6e 63 65 64 20 |r, .An A|dvanced |
|00000960| 34 2e 33 42 53 44 20 49 | 6e 74 65 72 70 72 6f 63 |4.3BSD I|nterproc|
|00000970| 65 73 73 20 43 6f 6d 6d | 75 6e 69 63 61 74 69 6f |ess Comm|unicatio|
|00000980| 6e 20 54 75 74 6f 72 69 | 61 6c ba 20 28 72 65 70 |n Tutori|al. (rep|
|00000990| 72 69 6e 74 65 64 20 69 | 6e 20 55 4e 49 58 20 50 |rinted i|n UNIX P|
|000009a0| 72 6f 67 72 61 6d 6d 65 | 72 27 73 20 53 75 70 70 |rogramme|r's Supp|
|000009b0| 6c 65 6d 65 6e 74 61 72 | 79 20 44 6f 63 75 6d 65 |lementar|y Docume|
|000009c0| 6e 74 73 20 56 6f 6c 75 | 6d 65 20 31 2c 20 50 53 |nts Volu|me 1, PS|
|000009d0| 31 3a 38 29 2e 0d ff 00 | 14 08 00 f7 0d ff 00 14 |1:8)....|........|
|000009e0| 0e 00 f7 53 65 65 20 61 | 6c 73 6f 3a 20 53 6b 74 |...See a|lso: Skt|
|000009f0| 53 6f 63 6b 65 74 4d 61 | 6e 61 67 65 72 2c 20 53 |SocketMa|nager, S|
|00000a00| 6b 74 53 6f 63 6b 65 74 | 55 73 65 72 ff 00 14 0e |ktSocket|User....|
|00000a10| 00 f7 0d 02 6d ff 00 14 | 0e 00 f7 43 4c 41 53 53 |....m...|...CLASS|
|00000a20| 20 44 45 53 43 52 49 50 | 54 49 4f 4e 0d ff 00 14 | DESCRIP|TION....|
|00000a30| 08 00 f7 0d fc 00 7e 02 | 1c 00 7e 00 01 f7 ff 00 |......~.|..~.....|
|00000a40| 14 0e 00 f7 54 68 65 20 | 53 6b 74 53 6f 63 6b 65 |....The |SktSocke|
|00000a50| 74 20 63 6c 61 73 73 2c | 20 61 6c 6f 6e 65 2c 20 |t class,| alone, |
|00000a60| 70 72 6f 76 69 64 65 73 | 20 61 6e 20 61 70 70 6c |provides| an appl|
|00000a70| 69 63 61 74 69 6f 6e 20 | 77 69 74 68 20 61 20 63 |ication |with a c|
|00000a80| 6c 65 61 6e 20 6f 62 6a | 65 63 74 20 69 6e 74 65 |lean obj|ect inte|
|00000a90| 72 66 61 63 65 20 74 6f | 20 42 65 72 6b 65 6c 65 |rface to| Berkele|
|00000aa0| 79 20 55 4e 49 58 20 73 | 74 72 65 61 6d 20 73 6f |y UNIX s|tream so|
|00000ab0| 63 6b 65 74 20 63 6f 6e | 6e 65 63 74 69 6f 6e 73 |cket con|nections|
|00000ac0| 2c 20 6f 72 20 74 6f 67 | 65 74 68 65 72 20 77 69 |, or tog|ether wi|
|00000ad0| 74 68 20 74 68 65 20 53 | 6b 74 53 6f 63 6b 65 74 |th the S|ktSocket|
|00000ae0| 4d 61 6e 61 67 65 72 20 | 61 6e 64 20 53 6b 74 53 |Manager |and SktS|
|00000af0| 6f 63 6b 65 74 55 73 65 | 72 20 63 6c 61 73 73 65 |ocketUse|r classe|
|00000b00| 73 2c 20 70 72 6f 76 69 | 64 65 73 20 61 6e 20 61 |s, provi|des an a|
|00000b10| 70 70 6c 69 63 61 74 69 | 6f 6e 20 77 69 74 68 20 |pplicati|on with |
|00000b20| 74 68 65 20 61 62 69 6c | 69 74 79 20 74 6f 20 61 |the abil|ity to a|
|00000b30| 63 74 20 61 73 20 61 20 | 73 65 72 76 65 72 20 66 |ct as a |server f|
|00000b40| 6f 72 20 73 74 72 65 61 | 6d 20 73 6f 63 6b 65 74 |or strea|m socket|
|00000b50| 20 63 6f 6e 6e 65 63 74 | 69 6f 6e 73 2e 20 20 54 | connect|ions. T|
|00000b60| 68 65 20 53 6b 74 53 6f | 63 6b 65 74 20 63 6c 61 |he SktSo|cket cla|
|00000b70| 73 73 20 69 6d 70 6c 65 | 6d 65 6e 74 73 20 74 68 |ss imple|ments th|
|00000b80| 65 20 61 63 74 75 61 6c | 20 69 6e 70 75 74 20 61 |e actual| input a|
|00000b90| 6e 64 20 6f 75 74 70 75 | 74 20 6f 6e 20 74 68 65 |nd outpu|t on the|
|00000ba0| 20 73 6f 63 6b 65 74 20 | 28 74 68 65 20 64 69 73 | socket |(the dis|
|00000bb0| 74 69 6e 63 74 69 6f 6e | 20 62 65 74 77 65 65 6e |tinction| between|
|00000bc0| 20 53 6b 74 53 6f 63 6b | 65 74 20 61 6e 64 20 73 | SktSock|et and s|
|00000bd0| 6f 63 6b 65 74 20 70 61 | 72 61 6c 6c 65 6c 73 20 |ocket pa|rallels |
|00000be0| 74 68 61 74 20 62 65 74 | 77 65 65 6e 20 57 69 6e |that bet|ween Win|
|00000bf0| 64 6f 77 20 61 6e 64 20 | 77 69 6e 64 6f 77 29 2e |dow and |window).|
|00000c00| 20 20 54 68 65 20 63 6c | 61 73 73 20 73 70 65 63 | The cl|ass spec|
|00000c10| 69 66 69 63 61 74 69 6f | 6e 73 20 66 6f 72 20 53 |ificatio|ns for S|
|00000c20| 6b 74 53 6f 63 6b 65 74 | 4d 61 6e 61 67 65 72 20 |ktSocket|Manager |
|00000c30| 61 6e 64 20 53 6b 74 53 | 6f 63 6b 65 74 55 73 65 |and SktS|ocketUse|
|00000c40| 72 20 70 72 6f 76 69 64 | 65 20 6d 6f 72 65 20 69 |r provid|e more i|
|00000c50| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 6f 6e 20 75 73 |nformati|on on us|
|00000c60| 69 6e 67 20 74 68 65 73 | 65 20 74 68 72 65 65 20 |ing thes|e three |
|00000c70| 63 6c 61 73 73 65 73 20 | 74 6f 67 65 74 68 65 72 |classes |together|
|00000c80| 2e 0d 00 3f ff 00 14 0e | 00 f7 53 6b 74 53 6f 63 |...?....|..SktSoc|
|00000c90| 6b 65 74 ff 00 14 0e 00 | f7 46 64 20 09 54 68 65 |ket.....|.Fd .The|
|00000ca0| 20 66 69 6c 65 20 64 65 | 73 63 72 69 70 74 6f 72 | file de|scriptor|
|00000cb0| 20 6f 66 20 74 68 65 20 | 53 6b 74 53 6f 63 6b 65 | of the |SktSocke|
|00000cc0| 74 2e 0d 00 07 ff 00 14 | 08 00 f7 0d 00 38 ff 00 |t.......|.....8..|
|00000cd0| 14 0e 00 f7 6d 61 6e 61 | 67 65 72 20 09 54 68 65 |....mana|ger .The|
|00000ce0| 20 53 6b 74 53 6f 63 6b | 65 74 20 6f 62 6a 65 63 | SktSock|et objec|
|00000cf0| 74 27 73 20 53 6b 74 53 | 6f 63 6b 65 74 4d 61 6e |t's SktS|ocketMan|
|00000d00| 61 67 65 72 2e 0d 00 07 | ff 00 14 08 00 f7 0d 00 |ager....|........|
|00000d10| 32 ff 00 14 0e 00 f7 75 | 73 65 72 20 09 54 68 65 |2......u|ser .The|
|00000d20| 20 53 6b 74 53 6f 63 6b | 65 74 20 6f 62 6a 65 63 | SktSock|et objec|
|00000d30| 74 27 73 20 53 6b 74 53 | 6f 63 6b 65 74 55 73 65 |t's SktS|ocketUse|
|00000d40| 72 2e 0d 00 07 ff 00 14 | 08 00 f7 0d 00 61 ff 00 |r.......|.....a..|
|00000d50| 14 0e 00 f7 68 6f 73 74 | 61 64 64 72 65 73 73 09 |....host|address.|
|00000d60| 54 68 65 20 49 6e 74 65 | 72 6e 65 74 20 61 64 64 |The Inte|rnet add|
|00000d70| 72 65 73 73 20 6f 66 20 | 74 68 65 20 53 6b 74 53 |ress of |the SktS|
|00000d80| 6f 63 6b 65 74 27 73 20 | 63 6f 6e 6e 65 63 74 65 |ocket's |connecte|
|00000d90| 64 20 68 6f 73 74 20 28 | 70 65 65 72 29 20 69 6e |d host (|peer) in|
|00000da0| 20 64 6f 74 20 6e 6f 74 | 61 74 69 6f 6e 2e 0d 00 | dot not|ation...|
|00000db0| 07 ff 00 14 08 00 f7 0d | 00 40 ff 00 14 0e 00 f7 |........|.@......|
|00000dc0| 68 6f 73 74 6e 61 6d 65 | 20 09 54 68 65 20 68 6f |hostname| .The ho|
|00000dd0| 73 74 6e 61 6d 65 20 6f | 66 20 74 68 65 20 53 6b |stname o|f the Sk|
|00000de0| 74 53 6f 63 6b 65 74 27 | 73 20 63 6f 6e 6e 65 63 |tSocket'|s connec|
|00000df0| 74 65 64 20 68 6f 73 74 | 2e 0d 00 07 ff 00 14 08 |ted host|........|
|00000e00| 00 f7 0d 00 45 ff 00 14 | 0e 00 f7 6f 75 74 70 75 |....E...|...outpu|
|00000e10| 74 51 75 65 75 65 20 09 | 53 74 72 69 6e 67 73 20 |tQueue .|Strings |
|00000e20| 77 61 69 74 69 6e 67 20 | 74 6f 20 62 65 20 73 65 |waiting |to be se|
|00000e30| 6e 74 20 74 6f 20 74 68 | 65 20 63 6f 6e 6e 65 63 |nt to th|e connec|
|00000e40| 74 65 64 20 68 6f 73 74 | 2e 0d 00 07 ff 00 14 08 |ted host|........|
|00000e50| 00 f7 0d 00 44 ff 00 14 | 0e 00 f7 71 75 65 75 65 |....D...|...queue|
|00000e60| 4c 65 6e 67 74 68 ff 00 | 14 0e 00 f7 20 09 54 68 |Length..|.... .Th|
|00000e70| 65 20 6c 65 6e 67 74 68 | 2c 20 69 6e 20 62 79 74 |e length|, in byt|
|00000e80| 65 73 2c 20 6f 66 20 74 | 68 65 20 6f 75 74 70 75 |es, of t|he outpu|
|00000e90| 74 20 71 75 65 75 65 2e | 0d 00 3b ff 00 14 0e 00 |t queue.|..;.....|
|00000ea0| f7 7a 6f 6e 65 09 54 68 | 65 20 7a 6f 6e 65 20 74 |.zone.Th|e zone t|
|00000eb0| 68 61 74 20 74 68 65 20 | 53 6b 74 53 6f 63 6b 65 |hat the |SktSocke|
|00000ec0| 74 20 77 61 73 20 61 6c | 6c 6f 63 61 74 65 64 20 |t was al|located |
|00000ed0| 66 72 6f 6d 2e 0d 00 13 | fc 00 6c 02 1c 00 6c 00 |from....|..l...l.|
|00000ee0| 01 f7 ff 00 14 08 00 f7 | 0d 0d 0d 00 07 ff 00 14 |........|........|
|00000ef0| 08 00 f7 0d 00 0f ff 00 | 14 08 01 f7 0d ff 00 14 |........|........|
|00000f00| 08 01 f7 0d 0d 00 07 ff | 00 14 08 00 f7 0d 00 57 |........|.......W|
|00000f10| ff 00 14 0e 02 f7 44 65 | 63 6c 61 72 65 64 20 69 |......De|clared i|
|00000f20| 6e 20 53 6b 74 53 6f 63 | 6b 65 74 ff 00 14 0e 00 |n SktSoc|ket.....|
|00000f30| f7 09 69 6e 74 09 73 6f | 63 6b 65 74 46 64 3b 0d |..int.so|cketFd;.|
|00000f40| fc 01 20 02 1c 01 20 00 | 01 06 30 f7 53 6b 74 53 |.. ... .|..0.SktS|
|00000f50| 6f 63 6b 65 74 4d 61 6e | 61 67 65 72 09 2a 6d 61 |ocketMan|ager.*ma|
|00000f60| 6e 61 67 65 72 3b 0d 00 | 13 fc 01 20 02 1c 00 7e |nager;..|... ...~|
|00000f70| 00 01 04 80 f7 ff 00 14 | 08 00 f7 0d 00 7f 0d fc |........|........|
|00000f80| 00 7e 02 1c 00 7e 00 01 | 05 58 f7 ff 00 14 0e 00 |.~...~..|.X......|
|00000f90| f7 52 65 74 72 69 65 76 | 69 6e 67 ff 00 14 0e 00 |.Retriev|ing.....|
|00000fa0| f7 20 53 6b 74 53 6f 63 | 6b 65 74 20 61 74 74 72 |. SktSoc|ket attr|
|00000fb0| 69 62 75 74 65 73 09 ff | 00 17 0e 00 f7 2d 80 ff |ibutes..|.....-..|
|00000fc0| 00 14 0e 00 f7 73 65 74 | 55 ff 00 14 0e 00 f7 73 |.....set|U......s|
|00000fd0| 65 72 3a ff 00 14 0e 00 | f7 0d ff 00 17 0e 00 f7 |er:.....|........|
|00000fe0| fc 01 56 02 1c 01 56 00 | 01 f7 2d 80 ff 00 14 0e |..V...V.|..-.....|
|00000ff0| 00 f7 75 ff 00 14 0e 00 | f7 73 65 72 0d 00 07 ff |..u.....|.ser....|
|00001000| 00 14 08 00 f7 0d 00 3f | ff 00 17 0e 00 f7 2d 80 |.......?|......-.|
|00001010| ff 00 14 0e 00 f7 6d 61 | 6e 61 67 65 72 ff 00 14 |......ma|nager...|
|00001020| 0e 00 f7 0d ff 00 17 0e | 00 f7 2d 80 ff 00 14 0e |........|..-.....|
|00001030| 00 f7 73 ff 00 14 0e 00 | f7 6f 63 6b 65 74 ff 00 |..s.....|.ocket..|
|00001040| 14 0e 00 f7 46 64 0d 00 | 31 ff 00 17 0e 00 f7 2d |....Fd..|1......-|
|00001050| 80 ff 00 14 0e 00 f7 68 | 6f 73 74 61 64 64 72 65 |.......h|ostaddre|
|00001060| 73 73 0d ff 00 17 0e 00 | f7 2d 80 ff 00 14 0e 00 |ss......|.-......|
|00001070| f7 68 6f 73 74 6e 61 6d | 65 0d 00 7e fc 00 7e 02 |.hostnam|e..~..~.|
|00001080| 1c 00 7e 00 01 05 58 f7 | ff 00 14 0e 00 f7 4d 61 |..~...X.|......Ma|
|00001090| 6e 61 67 69 6e 67 20 69 | 6e 70 75 74 20 61 6e 64 |naging i|nput and|
|000010a0| 20 6f 75 74 70 75 74 09 | ff 00 17 0e 00 f7 2d 80 | output.|......-.|
|000010b0| ff 00 14 0e 00 f7 72 65 | 61 64 49 6e 70 75 74 ff |......re|adInput.|
|000010c0| 00 14 0e 00 f7 0d fc 01 | 56 02 1c 01 56 00 01 f7 |........|V...V...|
|000010d0| ff 00 17 0e 00 f7 2d 80 | ff 00 14 0e 00 f7 71 75 |......-.|......qu|
|000010e0| 65 75 65 4f 75 74 70 75 | 74 3a 6f 66 4c 65 6e 67 |eueOutpu|t:ofLeng|
|000010f0| 74 68 3a ff 00 14 0e 00 | f7 0d 00 27 ff 00 17 0e |th:.....|...'....|
|00001100| 00 f7 2d 80 ff 00 14 0e | 00 f7 71 75 65 75 65 4f |..-.....|..queueO|
|00001110| 75 74 70 75 74 53 74 72 | 69 6e 67 3a ff 00 14 0e |utputStr|ing:....|
|00001120| 00 f7 0d 00 3a ff 00 17 | 0e 00 f7 2d 80 ff 00 14 |....:...|...-....|
|00001130| 0e 00 f7 66 6c 75 73 68 | 4f 75 74 70 75 74 0d ff |...flush|Output..|
|00001140| 00 17 0e 00 f7 2d 80 ff | 00 14 0e 00 f7 70 75 72 |.....-..|.....pur|
|00001150| 67 65 4f 75 74 70 75 74 | ff 00 14 0e 00 f7 0d 00 |geOutput|........|
|00001160| 0e 4e 58 5a 6f 6e 65 09 | 2a 7a 6f 6e 65 3b 0d 00 |.NXZone.|*zone;..|
|00001170| 07 ff 00 14 08 00 f7 0d | 00 07 ff 00 14 08 00 f7 |........|........|
|00001180| 0d 00 0f ff 00 14 08 01 | f7 0d ff 00 14 08 01 f7 |........|........|
|00001190| 0d 0d 00 dd fc 00 6c 02 | 1c 00 6c 00 01 f7 ff 00 |......l.|..l.....|
|000011a0| 14 0e 01 f7 75 73 65 72 | ff 00 14 0e 01 f7 0d fc |....user|........|
|000011b0| 00 99 02 1c 00 7e 00 01 | 05 10 f7 ff 00 17 0e 00 |.....~..|........|
|000011c0| f7 2d 80 ff 00 14 0e 01 | f7 75 73 65 72 ff 00 14 |.-......|.user...|
|000011d0| 0e 02 f7 0d ff 00 14 08 | 02 f7 fc 00 7e 02 1c 00 |........|....~...|
|000011e0| 7e 00 01 05 10 f7 0d ff | 00 14 0e 00 f7 52 65 74 |~.......|.....Ret|
|000011f0| 75 72 6e 73 20 74 68 65 | ff 00 14 0e 01 f7 ff 00 |urns the|........|
|00001200| 14 0e 00 f7 20 74 68 65 | 20 53 6b 74 53 6f 63 6b |.... the| SktSock|
|00001210| 65 74 27 73 20 53 6b 74 | 53 6f 63 6b 65 74 55 73 |et's Skt|SocketUs|
|00001220| 65 72 20 6f 62 6a 65 63 | 74 ff 00 14 0e 00 f7 2e |er objec|t.......|
|00001230| ff 00 14 0e 00 f7 0d ff | 00 14 08 00 f7 0d ff 00 |........|........|
|00001240| 14 0e 00 f7 53 65 65 20 | 61 6c 73 6f 3a 20 ff 00 |....See |also: ..|
|00001250| 17 0e 00 f7 2d 80 ff 00 | 14 0e 01 f7 73 65 74 55 |....-...|....setU|
|00001260| 73 65 72 ff 00 14 0e 01 | f7 3a ff 00 14 08 01 f7 |ser.....|.:......|
|00001270| 0d 00 03 0d 0d 0d 00 ea | fc 00 6c 02 1c 00 6c 00 |........|..l...l.|
|00001280| 01 f7 ff 00 14 0e 00 f7 | 43 4f 4e 53 54 41 4e 54 |........|CONSTANT|
|00001290| 53 20 41 4e 44 20 44 45 | 46 49 4e 45 44 20 54 59 |S AND DE|FINED TY|
|000012a0| 50 45 53 0d fc 00 7e 02 | 1c 00 7e 00 01 05 10 f7 |PES...~.|..~.....|
|000012b0| ff 00 14 08 01 f7 0d 0d | 0d ff 00 16 0c 00 f7 2f |........|......./|
|000012c0| 2a 0d 20 2a 20 4d 69 6e | 69 6d 75 6d 20 73 69 7a |*. * Min|imum siz|
|000012d0| 65 20 6f 66 20 74 68 65 | 20 6f 75 74 70 75 74 20 |e of the| output |
|000012e0| 71 75 65 75 65 2e 20 20 | 49 74 20 67 65 74 73 20 |queue. |It gets |
|000012f0| 73 68 72 75 6e 6b 0d 20 | 2a 20 74 6f 20 74 68 69 |shrunk. |* to thi|
|00001300| 73 20 69 66 20 74 68 65 | 20 63 6f 6e 74 65 6e 74 |s if the| content|
|00001310| 20 6f 66 20 74 68 65 20 | 71 75 65 75 65 20 67 65 | of the |queue ge|
|00001320| 74 73 0d 20 2a 20 73 69 | 67 6e 69 66 69 63 61 6e |ts. * si|gnifican|
|00001330| 74 6c 79 20 73 6d 61 6c | 6c 65 72 20 74 68 61 6e |tly smal|ler than|
|00001340| 20 74 68 69 73 2e 0d 20 | 2a 2f 0d 23 64 65 66 69 | this.. |*/.#defi|
|00001350| 6e 65 20 4f 55 54 51 53 | 49 5a 45 20 20 31 30 32 |ne OUTQS|IZE 102|
|00001360| 34 0d 01 05 fc 00 6c 02 | 1c 00 6c 00 01 f7 ff 00 |4.....l.|..l.....|
|00001370| 14 0e 01 f7 68 6f 73 74 | 61 64 64 72 65 73 73 ff |....host|address.|
|00001380| 00 14 0e 01 f7 0d fc 00 | 99 02 1c 00 7e 00 01 05 |........|....~...|
|00001390| 10 f7 ff 00 17 0e 00 f7 | 2d 80 ff 00 14 0e 00 f7 |........|-.......|
|000013a0| 28 63 6f 6e 73 74 20 63 | 68 61 72 20 2a 29 ff 00 |(const c|har *)..|
|000013b0| 14 0e 01 f7 68 6f 73 74 | 61 64 64 72 65 73 73 ff |....host|address.|
|000013c0| 00 14 0e 02 f7 0d ff 00 | 14 08 02 f7 fc 00 7e 02 |........|......~.|
|000013d0| 1c 00 7e 00 01 05 10 f7 | 0d ff 00 14 0e 00 f7 52 |..~.....|.......R|
|000013e0| 65 74 75 72 6e 73 20 74 | 68 65 20 49 6e 74 65 72 |eturns t|he Inter|
|000013f0| 6e 65 74 20 61 64 64 72 | 65 73 73 20 6f 66 20 74 |net addr|ess of t|
|00001400| 68 65 20 53 6b 74 53 6f | 63 6b 65 74 27 73 20 63 |he SktSo|cket's c|
|00001410| 6f 6e 6e 65 63 74 65 64 | 20 68 6f 73 74 20 69 6e |onnected| host in|
|00001420| 20 64 6f 74 20 6e 6f 74 | 61 74 69 6f 6e 2e 0d ff | dot not|ation...|
|00001430| 00 14 08 01 f7 ff 00 14 | 08 01 f7 0d ff 00 14 0e |........|........|
|00001440| 00 f7 53 65 65 20 61 6c | 73 6f 3a 20 ff 00 17 0e |..See al|so: ....|
|00001450| 00 f7 2d 80 ff 00 14 0e | 01 f7 68 6f 73 74 6e 61 |..-.....|..hostna|
|00001460| 6d 65 ff 00 14 0e 01 f7 | 0d 01 93 fc 00 6c 02 1c |me......|.....l..|
|00001470| 00 6c 00 01 f7 ff 00 14 | 0e 01 f7 72 65 61 64 49 |.l......|...readI|
|00001480| 6e 70 75 74 ff 00 14 0e | 01 f7 0d fc 00 99 02 1c |nput....|........|
|00001490| 00 7e 00 01 05 10 f7 ff | 00 17 0e 00 f7 2d 80 ff |.~......|.....-..|
|000014a0| 00 14 0e 01 f7 72 65 61 | 64 49 6e 70 75 74 ff 00 |.....rea|dInput..|
|000014b0| 14 0e 02 f7 0d ff 00 14 | 08 02 f7 fc 00 7e 02 1c |........|.....~..|
|000014c0| 00 7e 00 01 05 10 f7 0d | ff 00 14 0e 00 f7 54 68 |.~......|......Th|
|000014d0| 69 73 20 6d 65 74 68 6f | 64 2c 20 75 73 75 61 6c |is metho|d, usual|
|000014e0| 6c 79 20 69 6e 76 6f 6b | 65 64 20 62 79 20 74 68 |ly invok|ed by th|
|000014f0| 65 20 53 6b 74 53 6f 63 | 6b 65 74 27 73 20 6d 61 |e SktSoc|ket's ma|
|00001500| 6e 61 67 65 72 2c 20 72 | 65 61 64 73 20 64 61 74 |nager, r|eads dat|
|00001510| 61 20 66 72 6f 6d 20 74 | 68 65 20 73 6f 63 6b 65 |a from t|he socke|
|00001520| 74 20 61 6e 64 20 68 61 | 73 20 74 68 65 20 53 6b |t and ha|s the Sk|
|00001530| 74 53 6f 63 6b 65 74 27 | 73 20 75 73 65 72 20 71 |tSocket'|s user q|
|00001540| 75 65 75 65 20 74 68 65 | 20 69 6e 70 75 74 2c 20 |ueue the| input, |
|00001550| 73 65 6e 64 69 6e 67 20 | 69 74 20 61 20 ff 00 14 |sending |it a ...|
|00001560| 0e 01 f7 71 75 65 75 65 | 49 6e 70 75 74 3a 6f 66 |...queue|Input:of|
|00001570| 4c 65 6e 67 74 68 3a ff | 00 14 0e 00 f7 20 6d 65 |Length:.|..... me|
|00001580| 73 73 61 67 65 2e 20 20 | 52 65 74 75 72 6e 73 20 |ssage. |Returns |
|00001590| ff 00 14 0e 01 f7 73 65 | 6c 66 ff 00 14 0e 00 f7 |......se|lf......|
|000015a0| 2e ff 00 14 0e 00 f7 0d | ff 00 14 08 00 f7 0d ff |........|........|
|000015b0| 00 14 0e 00 f7 53 65 65 | 20 61 6c 73 6f 3a 20 ff |.....See| also: .|
|000015c0| 00 17 0e 00 f7 2d 80 ff | 00 14 0e 01 f7 71 75 65 |.....-..|.....que|
|000015d0| 75 65 49 6e 70 75 74 3a | 6f 66 4c 65 6e 67 74 68 |ueInput:|ofLength|
|000015e0| 3a 20 ff 00 14 0e 00 f7 | 28 53 6b 74 53 6f 63 6b |: ......|(SktSock|
|000015f0| 65 74 55 73 65 72 29 ff | 00 14 0e 01 f7 0d 00 0f |etUser).|........|
|00001600| ff 00 14 08 01 f7 0d 0d | ff 00 14 08 01 f7 0d 01 |........|........|
|00001610| df fc 00 6c 02 1c 00 6c | 00 01 f7 ff 00 14 0e 01 |...l...l|........|
|00001620| f7 71 75 65 75 65 4f 75 | 74 70 75 74 53 74 72 69 |.queueOu|tputStri|
|00001630| 6e 67 ff 00 14 0e 01 f7 | 3a 0d fc 00 99 02 1c 00 |ng......|:.......|
|00001640| 7e 00 01 05 10 f7 ff 00 | 17 0e 00 f7 2d 80 ff 00 |~.......|....-...|
|00001650| 14 0e 01 f7 71 75 65 75 | 65 4f 75 74 70 75 74 53 |....queu|eOutputS|
|00001660| 74 72 69 6e 67 3a ff 00 | 14 0e 00 f7 28 63 6f 6e |tring:..|....(con|
|00001670| 73 74 20 63 68 61 72 20 | 2a 29 ff 00 14 0e 02 f7 |st char |*)......|
|00001680| 61 53 74 72 69 6e 67 ff | 00 14 0e 02 f7 0d ff 00 |aString.|........|
|00001690| 14 08 02 f7 fc 00 7e 02 | 1c 00 7e 00 01 05 10 f7 |......~.|..~.....|
|000016a0| 0d ff 00 14 0e 00 f7 54 | 68 69 73 20 6d 65 74 68 |.......T|his meth|
|000016b0| 6f 64 2c 20 75 73 75 61 | 6c 6c 79 20 69 6e 76 6f |od, usua|lly invo|
|000016c0| 6b 65 64 20 62 79 20 74 | 68 65 20 53 6b 74 53 6f |ked by t|he SktSo|
|000016d0| 63 6b 65 74 55 73 65 72 | 2c 20 61 64 64 73 20 ff |cketUser|, adds .|
|000016e0| 00 14 0e 02 f7 61 53 74 | 72 69 6e 67 ff 00 14 0e |.....aSt|ring....|
|000016f0| 00 f7 20 74 6f 20 74 68 | 65 ff 00 14 0e 00 f7 20 |.. to th|e...... |
|00001700| 65 6e 64 20 6f 66 20 74 | 68 65 20 6f 75 74 70 75 |end of t|he outpu|
|00001710| 74 20 71 75 65 75 65 2c | 20 61 6e 64 20 75 70 64 |t queue,| and upd|
|00001720| 61 74 65 73 20 74 68 65 | 20 71 75 65 75 65 20 6c |ates the| queue l|
|00001730| 65 6e 67 74 68 2e 20 20 | 49 74 20 69 73 20 70 72 |ength. |It is pr|
|00001740| 6f 76 69 64 65 64 20 61 | 73 20 61 20 63 6f 6e 76 |ovided a|s a conv|
|00001750| 65 6e 69 65 6e 63 65 2c | 20 61 6e 64 20 69 73 20 |enience,| and is |
|00001760| 65 71 75 69 76 61 6c 65 | 6e 74 20 74 6f 20 73 65 |equivale|nt to se|
|00001770| 6e 64 69 6e 67 0d ff 00 | 14 08 00 f7 0d fc 00 90 |nding...|........|
|00001780| 02 1c 00 90 00 01 05 10 | f7 ff 00 16 0c 00 f7 5b |........|.......[|
|00001790| ff 00 16 0c 02 f7 6d 79 | 55 73 65 72 ff 00 16 0c |......my|User....|
|000017a0| 00 f7 20 71 75 65 75 65 | 4f 75 74 70 75 74 3a ff |.. queue|Output:.|
|000017b0| 00 16 0c 02 f7 61 53 74 | 72 69 6e 67 ff 00 16 0c |.....aSt|ring....|
|000017c0| 00 f7 20 6f 66 4c 65 6e | 67 74 68 3a 73 74 72 6c |.. ofLen|gth:strl|
|000017d0| 65 6e 28 ff 00 16 0c 02 | f7 61 53 74 72 69 6e 67 |en(.....|.aString|
|000017e0| ff 00 16 0c 00 f7 29 5d | 3b ff 00 14 0e 00 f7 0d |......)]|;.......|
|000017f0| 00 13 ff 00 14 08 00 f7 | fc 00 7e 02 1c 00 7e 00 |........|..~...~.|
|00001800| 01 05 10 f7 0d 00 5f 53 | 6b 74 53 6f 63 6b 65 74 |......_S|ktSocket|
|00001810| 55 73 65 72 09 2a 75 73 | 65 72 3b 0d 63 68 61 72 |User.*us|er;.char|
|00001820| 09 2a 68 6f 73 74 61 64 | 64 72 65 73 73 3b 0d 63 |.*hostad|dress;.c|
|00001830| 68 61 72 20 09 2a 68 6f | 73 74 6e 61 6d 65 0d 63 |har .*ho|stname.c|
|00001840| 68 61 72 09 2a 6f 75 74 | 70 75 74 51 75 65 75 65 |har.*out|putQueue|
|00001850| 3b 0d 73 69 7a 65 5f 74 | 09 71 75 65 75 65 4c 65 |;.size_t|.queueLe|
|00001860| 6e 67 74 68 3b 0d 00 cd | ff 00 14 08 00 f7 0d ff |ngth;...|........|
|00001870| 00 14 0e 00 f7 41 6e 20 | 53 6b 74 53 6f 63 6b 65 |.....An |SktSocke|
|00001880| 74 20 6f 62 6a 65 63 74 | 20 69 73 20 61 75 74 6f |t object| is auto|
|00001890| 6d 61 74 69 63 61 6c 6c | 79 20 63 72 65 61 74 65 |maticall|y create|
|000018a0| 64 20 61 6e 64 20 6d 61 | 69 6e 74 61 69 6e 65 64 |d and ma|intained|
|000018b0| 20 62 79 20 61 6e 20 61 | 70 70 6c 69 63 61 74 69 | by an a|pplicati|
|000018c0| 6f 6e 27 73 20 53 6b 74 | 53 6f 63 6b 65 74 4d 61 |on's Skt|SocketMa|
|000018d0| 6e 61 67 65 72 20 6f 62 | 6a 65 63 74 2e 20 20 49 |nager ob|ject. I|
|000018e0| 66 20 79 6f 75 20 75 73 | 65 20 61 6e 20 53 6b 74 |f you us|e an Skt|
|000018f0| 53 6f 63 6b 65 74 4d 61 | 6e 61 67 65 72 2c 20 79 |SocketMa|nager, y|
|00001900| 6f 75 20 6e 65 65 64 20 | 6e 65 76 65 72 20 64 69 |ou need |never di|
|00001910| 72 65 63 74 6c 79 20 61 | 63 63 65 73 73 20 74 68 |rectly a|ccess th|
|00001920| 65 20 53 6b 74 53 6f 63 | 6b 65 74 73 2e 0d ff 00 |e SktSoc|kets....|
|00001930| 14 08 00 f7 0d 02 a8 fc | 00 6c 02 1c 00 6c 00 01 |........|.l...l..|
|00001940| f7 ff 00 14 0e 00 f7 49 | 4e 53 54 41 4e 43 45 20 |.......I|NSTANCE |
|00001950| 4d 45 54 48 4f 44 53 0d | fc 00 6c 02 3e 00 6c 00 |METHODS.|..l.>.l.|
|00001960| 01 06 b0 07 1c 07 88 07 | f0 04 08 64 08 d0 f7 ff |........|...d....|
|00001970| 00 14 08 00 f7 0d ff 00 | 14 08 01 f7 0d 0d fc 00 |........|........|
|00001980| 6c 02 1c 00 6c 00 01 f7 | ff 00 14 0e 01 f7 63 6c |l...l...|......cl|
|00001990| 6f 73 65 ff 00 14 0e 01 | f7 0d fc 00 99 02 1c 00 |ose.....|........|
|000019a0| 7e 00 01 05 10 f7 ff 00 | 17 0e 00 f7 2d 20 ff 00 |~.......|....- ..|
|000019b0| 14 0e 01 f7 63 6c 6f 73 | 65 ff 00 14 0e 02 f7 0d |....clos|e.......|
|000019c0| ff 00 14 08 02 f7 fc 00 | 7e 02 1c 00 7e 00 01 05 |........|~...~...|
|000019d0| 10 f7 0d ff 00 14 0e 00 | f7 49 66 20 74 68 65 20 |........|.If the |
|000019e0| 53 6b 74 53 6f 63 6b 65 | 74 20 68 61 73 20 61 20 |SktSocke|t has a |
|000019f0| 6d 61 6e 61 67 65 72 2c | 20 73 ff 00 14 0e 00 f7 |manager,| s......|
|00001a00| 65 6e 64 73 20 74 68 65 | 20 53 6b 74 53 6f 63 6b |ends the| SktSock|
|00001a10| 65 74 4d 61 6e 61 67 65 | 72 20 61 20 ff 00 14 0e |etManage|r a ....|
|00001a20| 01 f7 63 6c 6f 73 65 53 | 6f 63 6b 65 74 3a ff 00 |..closeS|ocket:..|
|00001a30| 14 0e 00 f7 20 6d 65 73 | 73 61 67 65 20 74 6f 20 |.... mes|sage to |
|00001a40| 70 72 6f 70 65 72 6c 79 | 20 63 6c 6f 73 65 20 74 |properly| close t|
|00001a50| 68 65 20 73 6f 63 6b 65 | 74 20 61 6e 64 20 72 65 |he socke|t and re|
|00001a60| 6d 6f 76 65 20 61 6c 6c | 20 72 65 66 65 72 65 6e |move all| referen|
|00001a70| 63 65 73 20 74 6f 20 74 | 68 65 20 53 6f 63 6b 65 |ces to t|he Socke|
|00001a80| 74 20 6f 62 6a 65 63 74 | 2e 20 54 68 69 73 20 77 |t object|. This w|
|00001a90| 69 6c 6c 20 72 65 73 75 | 6c 74 20 69 6e 20 ff 00 |ill resu|lt in ..|
|00001aa0| 14 0e 01 f7 66 72 65 65 | ff 00 14 0e 00 f7 20 62 |....free|...... b|
|00001ab0| 65 69 6e 67 20 73 65 6e | 74 20 74 6f 20 74 68 65 |eing sen|t to the|
|00001ac0| 20 53 6f 63 6b 65 74 2c | 20 73 6f 20 79 6f 75 20 | Socket,| so you |
|00001ad0| 73 68 6f 75 6c 64 20 6e | 6f 74 20 73 65 6e 64 20 |should n|ot send |
|00001ae0| 61 20 ff 00 14 0e 01 f7 | 20 66 72 65 65 ff 00 14 |a ......| free...|
|00001af0| 0e 00 f7 20 6d 65 73 73 | 61 67 65 20 61 66 74 65 |... mess|age afte|
|00001b00| 72 20 61 20 ff 00 14 0e | 01 f7 63 6c 6f 73 65 ff |r a ....|..close.|
|00001b10| 00 14 0e 00 f7 2e 20 20 | 49 66 20 74 68 65 20 53 |...... |If the S|
|00001b20| 6b 74 53 6f 63 6b 65 74 | 20 64 6f 65 73 20 6e 6f |ktSocket| does no|
|00001b30| 74 20 68 61 76 65 20 61 | 20 6d 61 6e 61 67 65 72 |t have a| manager|
|00001b40| 2c 20 74 68 69 73 20 6d | 65 74 68 6f 64 20 73 69 |, this m|ethod si|
|00001b50| 6d 70 6c 79 20 73 65 6e | 64 73 20 ff 00 14 0e 01 |mply sen|ds .....|
|00001b60| f7 73 65 6c 66 ff 00 14 | 0e 00 f7 20 61 20 ff 00 |.self...|... a ..|
|00001b70| 14 0e 01 f7 66 72 65 65 | ff 00 14 0e 00 f7 20 6d |....free|...... m|
|00001b80| 65 73 73 61 67 65 2e 20 | 20 ff 00 14 0e 00 f7 52 |essage. | ......R|
|00001b90| 65 74 75 72 6e 73 20 ff | 00 14 0e 01 f7 6e 69 6c |eturns .|.....nil|
|00001ba0| ff 00 14 0e 00 f7 2e ff | 00 14 0e 00 f7 0d ff 00 |........|........|
|00001bb0| 14 08 00 f7 0d ff 00 14 | 0e 00 f7 53 65 65 20 61 |........|...See a|
|00001bc0| 6c 73 6f 3a 20 20 ff 00 | 17 0e 00 f7 2d 20 ff 00 |lso: ..|....- ..|
|00001bd0| 14 0e 01 f7 66 72 65 65 | ff 00 14 0e 01 f7 0d 01 |....free|........|
|00001be0| 98 fc 00 6c 02 1c 00 6c | 00 01 f7 ff 00 14 0e 01 |...l...l|........|
|00001bf0| f7 66 72 65 65 ff 00 14 | 0e 01 f7 0d fc 00 99 02 |.free...|........|
|00001c00| 1c 00 7e 00 01 05 10 f7 | ff 00 17 0e 00 f7 2d 80 |..~.....|......-.|
|00001c10| ff 00 14 0e 01 f7 66 72 | 65 65 ff 00 14 0e 02 f7 |......fr|ee......|
|00001c20| 0d ff 00 14 08 02 f7 fc | 00 7e 02 1c 00 7e 00 01 |........|.~...~..|
|00001c30| 05 10 f7 0d ff 00 14 0e | 00 f7 50 75 72 67 65 73 |........|..Purges|
|00001c40| 20 61 6c 6c 20 70 65 6e | 64 69 6e 67 20 6f 75 74 | all pen|ding out|
|00001c50| 70 75 74 ff 00 14 0e 00 | f7 2c 20 63 6c 6f 73 65 |put.....|., close|
|00001c60| 73 20 74 68 65 20 73 6f | 63 6b 65 74 2c 20 61 6e |s the so|cket, an|
|00001c70| 64 20 64 65 61 6c 6c 6f | 63 61 74 65 73 20 74 68 |d deallo|cates th|
|00001c80| 65 20 53 6b 74 53 6f 63 | 6b 65 74 27 73 20 6d 65 |e SktSoc|ket's me|
|00001c90| 6d 6f 72 79 2e 20 20 59 | 6f 75 20 73 68 6f 75 6c |mory. Y|ou shoul|
|00001ca0| 64 20 6e 6f 74 20 73 65 | 6e 64 20 74 68 69 73 20 |d not se|nd this |
|00001cb0| 6d 65 73 73 61 67 65 20 | 79 6f 75 72 73 65 6c 66 |message |yourself|
|00001cc0| 3b 20 75 73 65 20 ff 00 | 14 0e 01 f7 63 6c 6f 73 |; use ..|....clos|
|00001cd0| 65 ff 00 14 0e 00 f7 20 | 74 6f 20 63 6f 72 72 65 |e...... |to corre|
|00001ce0| 63 74 6c 79 20 72 65 6d | 6f 76 65 20 61 6c 6c 20 |ctly rem|ove all |
|00001cf0| 72 65 66 65 72 65 6e 63 | 65 73 20 74 6f 20 74 68 |referenc|es to th|
|00001d00| 65 20 53 6f 63 6b 65 74 | 20 69 6e 20 74 68 65 20 |e Socket| in the |
|00001d10| 61 73 73 6f 63 69 61 74 | 65 64 20 53 6b 74 53 6f |associat|ed SktSo|
|00001d20| 63 6b 65 74 4d 61 6e 61 | 67 65 72 2e 0d ff 00 14 |cketMana|ger.....|
|00001d30| 08 00 f7 0d ff 00 14 0e | 00 f7 53 65 65 20 61 6c |........|..See al|
|00001d40| 73 6f 3a 20 ff 00 17 0e | 00 f7 2d 80 ff 00 14 0e |so: ....|..-.....|
|00001d50| 01 f7 63 6c 6f 73 65 ff | 00 14 0e 00 f7 2c 20 ff |..close.|....., .|
|00001d60| 00 17 0e 00 f7 2d 80 ff | 00 14 0e 01 f7 70 75 72 |.....-..|.....pur|
|00001d70| 67 65 4f 75 74 70 75 74 | 0d 02 6b fc 00 6c 02 1c |geOutput|..k..l..|
|00001d80| 00 6c 00 01 f7 ff 00 14 | 0e 01 f7 ff 00 14 0e 01 |.l......|........|
|00001d90| f7 66 6c 75 73 68 4f 75 | 74 70 75 74 ff 00 14 0e |.flushOu|tput....|
|00001da0| 01 f7 0d fc 00 99 02 1c | 00 7e 00 01 05 10 f7 ff |........|.~......|
|00001db0| 00 17 0e 00 f7 2d 80 ff | 00 14 0e 01 f7 66 6c 75 |.....-..|.....flu|
|00001dc0| 73 68 4f 75 74 70 75 74 | ff 00 14 0e 02 f7 0d ff |shOutput|........|
|00001dd0| 00 14 08 02 f7 fc 00 7e | 02 1c 00 7e 00 01 05 10 |.......~|...~....|
|00001de0| f7 0d ff 00 14 0e 00 f7 | 57 72 69 74 65 73 20 61 |........|Writes a|
|00001df0| 6c 6c 20 64 61 74 61 20 | 69 6e 20 74 68 65 20 6f |ll data |in the o|
|00001e00| 75 74 70 75 74 20 71 75 | 65 75 65 20 74 6f 20 74 |utput qu|eue to t|
|00001e10| 68 65 20 73 6f 63 6b 65 | 74 2c 20 74 68 65 72 65 |he socke|t, there|
|00001e20| 62 79 20 65 6d 70 74 79 | 69 6e 67 20 74 68 65 20 |by empty|ing the |
|00001e30| 71 75 65 75 65 2e 20 20 | 52 65 74 75 72 6e 73 20 |queue. |Returns |
|00001e40| ff 00 14 0e 01 f7 73 65 | 6c 66 ff 00 14 0e 00 f7 |......se|lf......|
|00001e50| 2c 20 6f 72 20 ff 00 14 | 0e 01 f7 6e 69 6c ff 00 |, or ...|...nil..|
|00001e60| 14 0e 00 f7 20 69 66 20 | 61 20 6d 65 6d 6f 72 79 |.... if |a memory|
|00001e70| 20 72 65 61 6c 6c 6f 63 | 61 74 69 6f 6e 20 66 61 | realloc|ation fa|
|00001e80| 69 6c 73 ff 00 14 0e 00 | f7 2e 20 20 49 66 20 74 |ils.....|.. If t|
|00001e90| 68 65 20 72 65 74 75 72 | 6e 20 76 61 6c 75 65 20 |he retur|n value |
|00001ea0| 69 73 20 ff 00 14 0e 01 | f7 6e 69 6c ff 00 14 0e |is .....|.nil....|
|00001eb0| 00 f7 2c 20 74 68 65 20 | 53 6b 74 53 6f 63 6b 65 |.., the |SktSocke|
|00001ec0| 74 20 68 61 73 20 62 65 | 63 6f 6d 65 20 63 6f 72 |t has be|come cor|
|00001ed0| 72 75 70 74 2c 20 61 6e | 64 20 77 69 6c 6c 20 63 |rupt, an|d will c|
|00001ee0| 72 61 73 68 20 74 68 65 | 20 70 72 6f 63 65 73 73 |rash the| process|
|00001ef0| 20 74 68 65 20 6e 65 78 | 74 20 74 69 6d 65 20 69 | the nex|t time i|
|00001f00| 74 20 61 74 74 65 6d 70 | 74 73 20 74 6f 20 61 6c |t attemp|ts to al|
|00001f10| 74 65 72 20 69 74 73 20 | 6f 75 74 70 75 74 20 71 |ter its |output q|
|00001f20| 75 65 75 65 2e 20 20 59 | 6f 75 20 73 68 6f 75 6c |ueue. Y|ou shoul|
|00001f30| 64 20 65 69 74 68 65 72 | 20 66 72 65 65 20 74 68 |d either| free th|
|00001f40| 65 20 53 6b 74 53 6f 63 | 6b 65 74 20 6f 72 20 74 |e SktSoc|ket or t|
|00001f50| 65 72 6d 69 6e 61 74 65 | 20 74 68 65 20 70 72 6f |erminate| the pro|
|00001f60| 63 65 73 73 20 69 66 20 | 74 68 65 20 72 65 74 75 |cess if |the retu|
|00001f70| 72 6e 20 69 73 20 ff 00 | 14 0e 01 f7 6e 69 6c ff |rn is ..|....nil.|
|00001f80| 00 14 0e 00 f7 2e ff 00 | 14 0e 00 f7 0d ff 00 14 |........|........|
|00001f90| 08 00 f7 0d ff 00 14 0e | 00 f7 53 65 65 20 61 6c |........|..See al|
|00001fa0| 73 6f 3a 20 ff 00 17 0e | 00 f7 2d 80 ff 00 14 0e |so: ....|..-.....|
|00001fb0| 01 f7 71 75 65 75 65 4f | 75 74 70 75 74 ff 00 14 |..queueO|utput...|
|00001fc0| 0e 01 f7 3a ff 00 14 0e | 00 f7 2c 20 ff 00 17 0e |...:....|.., ....|
|00001fd0| 00 f7 2d 80 ff 00 14 0e | 01 f7 70 75 72 67 65 4f |..-.....|..purgeO|
|00001fe0| 75 74 70 75 74 0d 02 3d | fc 00 6c 02 1c 00 6c 00 |utput..=|..l...l.|
|00001ff0| 01 f7 ff 00 14 0e 01 f7 | 70 75 72 67 65 4f 75 74 |........|purgeOut|
|00002000| 70 75 74 ff 00 14 0e 01 | f7 0d fc 00 99 02 1c 00 |put.....|........|
|00002010| 7e 00 01 05 10 f7 ff 00 | 17 0e 00 f7 2d 80 ff 00 |~.......|....-...|
|00002020| 14 0e 01 f7 70 75 72 67 | 65 4f 75 74 70 75 74 ff |....purg|eOutput.|
|00002030| 00 14 0e 02 f7 0d ff 00 | 14 08 02 f7 fc 00 7e 02 |........|......~.|
|00002040| 1c 00 7e 00 01 05 10 f7 | 0d ff 00 14 0e 00 f7 45 |..~.....|.......E|
|00002050| 6d 70 74 69 65 73 20 74 | 68 65 20 6f 75 74 70 75 |mpties t|he outpu|
|00002060| 74 20 71 75 65 75 65 20 | 77 69 74 68 6f 75 74 20 |t queue |without |
|00002070| 77 72 69 74 69 6e 67 20 | 69 74 20 74 6f 20 74 68 |writing |it to th|
|00002080| 65 20 73 6f 63 6b 65 74 | 2e 20 20 52 65 74 75 72 |e socket|. Retur|
|00002090| 6e 73 20 ff 00 14 0e 01 | f7 73 65 6c 66 ff 00 14 |ns .....|.self...|
|000020a0| 0e 00 f7 2c 20 6f 72 20 | ff 00 14 0e 01 f7 6e 69 |..., or |......ni|
|000020b0| 6c ff 00 14 0e 00 f7 20 | 69 66 20 61 20 6d 65 6d |l...... |if a mem|
|000020c0| 6f 72 79 20 72 65 61 6c | 6c 6f 63 61 74 69 6f 6e |ory real|location|
|000020d0| 20 66 61 69 6c 73 ff 00 | 14 0e 00 f7 2e 20 20 49 | fails..|..... I|
|000020e0| 66 20 74 68 65 20 72 65 | 74 75 72 6e 20 76 61 6c |f the re|turn val|
|000020f0| 75 65 20 69 73 20 ff 00 | 14 0e 01 f7 6e 69 6c ff |ue is ..|....nil.|
|00002100| 00 14 0e 00 f7 2c 20 74 | 68 65 20 53 6b 74 53 6f |....., t|he SktSo|
|00002110| 63 6b 65 74 20 68 61 73 | 20 62 65 63 6f 6d 65 20 |cket has| become |
|00002120| 63 6f 72 72 75 70 74 2c | 20 61 6e 64 20 77 69 6c |corrupt,| and wil|
|00002130| 6c 20 63 72 61 73 68 20 | 74 68 65 20 70 72 6f 63 |l crash |the proc|
|00002140| 65 73 73 20 74 68 65 20 | 6e 65 78 74 20 74 69 6d |ess the |next tim|
|00002150| 65 20 69 74 20 61 74 74 | 65 6d 70 74 73 20 74 6f |e it att|empts to|
|00002160| 20 61 6c 74 65 72 20 69 | 74 73 20 6f 75 74 70 75 | alter i|ts outpu|
|00002170| 74 20 71 75 65 75 65 2e | 20 20 59 6f 75 20 73 68 |t queue.| You sh|
|00002180| 6f 75 6c 64 20 65 69 74 | 68 65 72 20 66 72 65 65 |ould eit|her free|
|00002190| 20 74 68 65 20 53 6b 74 | 53 6f 63 6b 65 74 20 6f | the Skt|Socket o|
|000021a0| 72 20 74 65 72 6d 69 6e | 61 74 65 20 74 68 65 20 |r termin|ate the |
|000021b0| 70 72 6f 63 65 73 73 20 | 69 66 20 74 68 65 20 72 |process |if the r|
|000021c0| 65 74 75 72 6e 20 69 73 | 20 ff 00 14 0e 01 f7 6e |eturn is| ......n|
|000021d0| 69 6c ff 00 14 0e 00 f7 | 2e 0d ff 00 14 08 00 f7 |il......|........|
|000021e0| 0d ff 00 14 0e 00 f7 53 | 65 65 20 61 6c 73 6f 3a |.......S|ee also:|
|000021f0| 20 ff 00 17 0e 00 f7 2d | 80 ff 00 14 0e 01 f7 66 | ......-|.......f|
|00002200| 6c 75 73 68 4f 75 74 70 | 75 74 ff 00 14 0e 00 f7 |lushOutp|ut......|
|00002210| 2c 20 ff 00 17 0e 00 f7 | 2d 80 ff 00 14 0e 01 f7 |, ......|-.......|
|00002220| 66 72 65 65 0d 03 04 fc | 00 6c 02 1c 00 6c 00 01 |free....|.l...l..|
|00002230| f7 ff 00 14 0e 01 f7 71 | 75 65 75 65 4f 75 74 70 |.......q|ueueOutp|
|00002240| 75 74 ff 00 14 0e 01 f7 | 3a 6f 66 4c 65 6e 67 74 |ut......|:ofLengt|
|00002250| 68 3a 0d fc 00 99 02 1c | 00 7e 00 01 05 10 f7 ff |h:......|.~......|
|00002260| 00 17 0e 00 f7 2d 80 ff | 00 14 0e 01 f7 71 75 65 |.....-..|.....que|
|00002270| 75 65 4f 75 74 70 75 74 | 3a ff 00 14 0e 00 f7 28 |ueOutput|:......(|
|00002280| 63 6f 6e 73 74 20 63 68 | 61 72 20 2a 29 ff 00 14 |const ch|ar *)...|
|00002290| 0e 02 f7 6f 75 74 70 75 | 74 ff 00 14 0e 00 f7 20 |...outpu|t...... |
|000022a0| ff 00 14 0e 01 f7 6f 66 | 4c 65 6e 67 74 68 3a ff |......of|Length:.|
|000022b0| 00 14 0e 00 f7 28 73 69 | 7a 65 5f 74 29 ff 00 14 |.....(si|ze_t)...|
|000022c0| 0e 02 f7 6c 65 6e 67 74 | 68 0d ff 00 14 08 02 f7 |...lengt|h.......|
|000022d0| fc 00 7e 02 1c 00 7e 00 | 01 05 10 f7 0d ff 00 14 |..~...~.|........|
|000022e0| 0e 00 f7 54 68 69 73 20 | 6d 65 74 68 6f 64 2c 20 |...This |method, |
|000022f0| 75 73 75 61 6c 6c 79 20 | 69 6e 76 6f 6b 65 64 20 |usually |invoked |
|00002300| 62 79 20 74 68 65 20 53 | 6b 74 53 6f 63 6b 65 74 |by the S|ktSocket|
|00002310| 55 73 65 72 2c 20 61 64 | 64 73 20 ff 00 14 0e 02 |User, ad|ds .....|
|00002320| f7 6c 65 6e 67 74 68 ff | 00 14 0e 00 f7 20 62 79 |.length.|..... by|
|00002330| 74 65 73 20 6f 66 20 ff | 00 14 0e 02 f7 6f 75 74 |tes of .|.....out|
|00002340| 70 75 74 ff 00 14 0e 00 | f7 20 74 6f 20 74 68 65 |put.....|. to the|
|00002350| 20 65 6e 64 20 6f 66 20 | 74 68 65 20 6f 75 74 70 | end of |the outp|
|00002360| 75 74 20 71 75 65 75 65 | 2c 20 61 6e 64 20 75 70 |ut queue|, and up|
|00002370| 64 61 74 65 73 20 74 68 | 65 20 71 75 65 75 65 20 |dates th|e queue |
|00002380| 6c 65 6e 67 74 68 2e 20 | 20 52 65 74 75 72 6e 73 |length. | Returns|
|00002390| 20 ff 00 14 0e 01 f7 73 | 65 6c 66 ff 00 14 0e 00 | ......s|elf.....|
|000023a0| f7 2c 20 6f 72 20 ff 00 | 14 0e 01 f7 6e 69 6c ff |., or ..|....nil.|
|000023b0| 00 14 0e 00 f7 20 69 66 | 20 61 20 6d 65 6d 6f 72 |..... if| a memor|
|000023c0| 79 20 72 65 61 6c 6c 6f | 63 61 74 69 6f 6e 20 66 |y reallo|cation f|
|000023d0| 61 69 6c 73 ff 00 14 0e | 00 f7 2e 20 20 49 66 20 |ails....|... If |
|000023e0| 74 68 65 20 72 65 74 75 | 72 6e 20 76 61 6c 75 65 |the retu|rn value|
|000023f0| 20 69 73 20 ff 00 14 0e | 01 f7 6e 69 6c ff 00 14 | is ....|..nil...|
|00002400| 0e 00 f7 2c 20 74 68 65 | 20 53 6b 74 53 6f 63 6b |..., the| SktSock|
|00002410| 65 74 20 68 61 73 20 62 | 65 63 6f 6d 65 20 63 6f |et has b|ecome co|
|00002420| 72 72 75 70 74 2c 20 61 | 6e 64 20 77 69 6c 6c 20 |rrupt, a|nd will |
|00002430| 63 72 61 73 68 20 74 68 | 65 20 70 72 6f 63 65 73 |crash th|e proces|
|00002440| 73 20 74 68 65 20 6e 65 | 78 74 20 74 69 6d 65 20 |s the ne|xt time |
|00002450| 69 74 20 61 74 74 65 6d | 70 74 73 20 74 6f 20 61 |it attem|pts to a|
|00002460| 6c 74 65 72 20 69 74 73 | 20 6f 75 74 70 75 74 20 |lter its| output |
|00002470| 71 75 65 75 65 2e 20 20 | 59 6f 75 20 73 68 6f 75 |queue. |You shou|
|00002480| 6c 64 20 65 69 74 68 65 | 72 20 66 72 65 65 20 74 |ld eithe|r free t|
|00002490| 68 65 20 53 6b 74 53 6f | 63 6b 65 74 20 6f 72 20 |he SktSo|cket or |
|000024a0| 74 65 72 6d 69 6e 61 74 | 65 20 74 68 65 20 70 72 |terminat|e the pr|
|000024b0| 6f 63 65 73 73 20 69 66 | 20 74 68 65 20 72 65 74 |ocess if| the ret|
|000024c0| 75 72 6e 20 69 73 20 ff | 00 14 0e 01 f7 6e 69 6c |urn is .|.....nil|
|000024d0| ff 00 14 0e 00 f7 2e 2e | 0d ff 00 14 08 00 f7 0d |........|........|
|000024e0| ff 00 14 0e 00 f7 53 65 | 65 20 61 6c 73 6f 3a 20 |......Se|e also: |
|000024f0| ff 00 17 0e 00 f7 2d 80 | ff 00 14 0e 01 f7 66 6c |......-.|......fl|
|00002500| 75 73 68 4f 75 74 70 75 | 74 ff 00 14 0e 00 f7 2c |ushOutpu|t......,|
|00002510| 20 ff 00 17 0e 00 f7 2d | 80 ff 00 14 0e 01 f7 70 | ......-|.......p|
|00002520| 75 72 67 65 4f 75 74 70 | 75 74 0d 02 74 ff 00 14 |urgeOutp|ut..t...|
|00002530| 0e 00 f7 49 74 20 69 73 | 20 74 68 65 72 65 66 6f |...It is| therefo|
|00002540| 72 65 20 6e 6f 74 20 75 | 73 65 66 75 6c 20 66 6f |re not u|seful fo|
|00002550| 72 20 68 61 76 69 6e 67 | 20 74 68 65 20 6e 75 6c |r having| the nul|
|00002560| 6c 20 63 68 61 72 61 63 | 74 65 72 20 61 74 20 74 |l charac|ter at t|
|00002570| 68 65 20 65 6e 64 20 6f | 66 20 74 68 65 20 73 74 |he end o|f the st|
|00002580| 72 69 6e 67 20 71 75 65 | 75 65 64 2e 20 20 54 6f |ring que|ued. To|
|00002590| 20 64 6f 20 74 68 61 74 | 2c 20 61 64 64 20 31 20 | do that|, add 1 |
|000025a0| 74 6f 20 ff 00 14 0e 02 | f7 61 53 74 72 69 6e 67 |to .....|.aString|
|000025b0| ff 00 14 0e 00 f7 27 73 | ff 00 14 0e 00 f7 20 6c |......'s|...... l|
|000025c0| 65 6e 67 74 68 20 61 6e | 64 20 73 65 6e 64 20 ff |ength an|d send .|
|000025d0| 00 14 0e 01 f7 71 75 65 | 75 65 4f 75 74 70 75 74 |.....que|ueOutput|
|000025e0| 3a 6f 66 4c 65 6e 67 74 | 68 3a ff 00 14 0e 00 f7 |:ofLengt|h:......|
|000025f0| 2e 0d ff 00 14 08 00 f7 | 0d ff 00 14 0e 00 f7 52 |........|.......R|
|00002600| 65 74 75 72 6e 73 20 ff | 00 14 0e 01 f7 73 65 6c |eturns .|.....sel|
|00002610| 66 ff 00 14 0e 00 f7 2c | 20 6f 72 20 ff 00 14 0e |f......,| or ....|
|00002620| 01 f7 6e 69 6c ff 00 14 | 0e 00 f7 20 69 66 20 61 |..nil...|... if a|
|00002630| 20 6d 65 6d 6f 72 79 20 | 72 65 61 6c 6c 6f 63 61 | memory |realloca|
|00002640| 74 69 6f 6e 20 66 61 69 | 6c 73 ff 00 14 0e 00 f7 |tion fai|ls......|
|00002650| 2e 20 20 49 66 20 74 68 | 65 20 72 65 74 75 72 6e |. If th|e return|
|00002660| 20 76 61 6c 75 65 20 69 | 73 20 ff 00 14 0e 01 f7 | value i|s ......|
|00002670| 6e 69 6c ff 00 14 0e 00 | f7 2c 20 74 68 65 20 53 |nil.....|., the S|
|00002680| 6b 74 53 6f 63 6b 65 74 | 20 68 61 73 20 62 65 63 |ktSocket| has bec|
|00002690| 6f 6d 65 20 63 6f 72 72 | 75 70 74 2c 20 61 6e 64 |ome corr|upt, and|
|000026a0| 20 77 69 6c 6c 20 63 72 | 61 73 68 20 74 68 65 20 | will cr|ash the |
|000026b0| 70 72 6f 63 65 73 73 20 | 74 68 65 20 6e 65 78 74 |process |the next|
|000026c0| 20 74 69 6d 65 20 69 74 | 20 61 74 74 65 6d 70 74 | time it| attempt|
|000026d0| 73 20 74 6f 20 61 6c 74 | 65 72 20 69 74 73 20 6f |s to alt|er its o|
|000026e0| 75 74 70 75 74 20 71 75 | 65 75 65 2e 20 20 59 6f |utput qu|eue. Yo|
|000026f0| 75 20 73 68 6f 75 6c 64 | 20 65 69 74 68 65 72 20 |u should| either |
|00002700| 66 72 65 65 20 74 68 65 | 20 53 6b 74 53 6f 63 6b |free the| SktSock|
|00002710| 65 74 20 6f 72 20 74 65 | 72 6d 69 6e 61 74 65 20 |et or te|rminate |
|00002720| 74 68 65 20 70 72 6f 63 | 65 73 73 20 69 66 20 74 |the proc|ess if t|
|00002730| 68 65 20 72 65 74 75 72 | 6e 20 69 73 20 ff 00 14 |he retur|n is ...|
|00002740| 0e 01 f7 6e 69 6c ff 00 | 14 0e 00 f7 2e 2e 0d ff |...nil..|........|
|00002750| 00 14 08 00 f7 0d ff 00 | 14 0e 00 f7 53 65 65 20 |........|....See |
|00002760| 61 6c 73 6f 3a 20 ff 00 | 17 0e 00 f7 2d 80 ff 00 |also: ..|....-...|
|00002770| 14 0e 01 f7 66 6c 75 73 | 68 4f 75 74 70 75 74 ff |....flus|hOutput.|
|00002780| 00 14 0e 00 f7 2c 20 ff | 00 17 0e 00 f7 2d 80 ff |....., .|.....-..|
|00002790| 00 14 0e 01 f7 70 75 72 | 67 65 4f 75 74 70 75 74 |.....pur|geOutput|
|000027a0| 0d 00 59 ff 00 17 0e 00 | f7 2d 80 ff 00 14 0e 00 |..Y.....|.-......|
|000027b0| f7 73 65 74 53 6f 63 6b | 65 74 4f 70 74 69 6f 6e |.setSock|etOption|
|000027c0| 73 3a ff 00 14 08 00 f7 | 0d ff 00 17 0e 00 f7 2d |s:......|.......-|
|000027d0| 80 ff 00 14 0e 00 f7 63 | 6c 6f 73 65 ff 00 14 08 |.......c|lose....|
|000027e0| 00 f7 0d ff 00 17 0e 00 | f7 2d 80 ff 00 14 0e 00 |........|.-......|
|000027f0| f7 66 72 65 65 ff 00 14 | 08 00 f7 0d 00 07 ff 00 |.free...|........|
|00002800| 14 08 00 f7 0d 00 09 ff | 00 14 08 01 f7 0d 0d 0d |........|........|
|00002810| 01 68 fc 00 6c 02 1c 00 | 6c 00 01 f7 ff 00 14 0e |.h..l...|l.......|
|00002820| 01 f7 73 65 74 55 73 65 | 72 ff 00 14 0e 01 f7 3a |..setUse|r......:|
|00002830| 0d fc 00 99 02 1c 00 7e | 00 01 05 10 f7 ff 00 17 |.......~|........|
|00002840| 0e 00 f7 2d 80 ff 00 14 | 0e 01 f7 73 65 74 55 73 |...-....|...setUs|
|00002850| 65 72 ff 00 14 0e 01 f7 | 3a ff 00 14 0e 02 f7 61 |er......|:......a|
|00002860| ff 00 14 0e 02 f7 55 73 | 65 72 ff 00 14 0e 02 f7 |......Us|er......|
|00002870| 0d ff 00 14 08 02 f7 fc | 00 7e 02 1c 00 7e 00 01 |........|.~...~..|
|00002880| 05 10 f7 0d ff 00 14 0e | 00 f7 53 ff 00 14 0e 00 |........|..S.....|
|00002890| f7 65 74 73 20 74 68 65 | 20 53 6b 74 53 6f 63 6b |.ets the| SktSock|
|000028a0| 65 74 27 73 20 75 73 65 | 72 20 28 77 68 69 63 68 |et's use|r (which|
|000028b0| 20 6d 75 73 74 20 62 65 | 20 61 20 73 75 62 63 6c | must be| a subcl|
|000028c0| 61 73 73 20 6f 66 20 53 | 6b 74 53 6f 63 6b 65 72 |ass of S|ktSocker|
|000028d0| 55 73 65 72 29 20 74 6f | 20 ff 00 14 0e 02 f7 61 |User) to| ......a|
|000028e0| ff 00 14 0e 02 f7 55 73 | 65 72 ff 00 14 0e 00 f7 |......Us|er......|
|000028f0| 20 61 6e 64 20 72 65 74 | 75 72 6e 73 20 74 68 65 | and ret|urns the|
|00002900| 20 6f 6c 64 20 75 73 65 | 72 2e 20 20 41 6c 73 6f | old use|r. Also|
|00002910| 20 68 61 73 20 74 68 65 | 20 75 73 65 72 20 73 65 | has the| user se|
|00002920| 74 20 69 74 73 20 73 6f | 63 6b 65 74 20 74 6f 20 |t its so|cket to |
|00002930| 74 68 65 20 53 6b 74 53 | 6f 63 6b 65 74 2e 0d ff |the SktS|ocket...|
|00002940| 00 14 08 00 f7 0d ff 00 | 14 0e 00 f7 53 65 65 20 |........|....See |
|00002950| 61 6c 73 6f 3a 20 ff 00 | 17 0e 00 f7 2d 80 ff 00 |also: ..|....-...|
|00002960| 14 0e 01 f7 69 6e 69 74 | 4f 6e 3a 6d 61 6e 61 67 |....init|On:manag|
|00002970| 65 72 ff 00 14 0e 01 f7 | 3a 0d 03 3d fc 00 6c 02 |er......|:..=..l.|
|00002980| 1c 00 6c 00 01 f7 ff 00 | 14 0e 01 f7 73 65 74 53 |..l.....|....setS|
|00002990| 6f 63 6b 65 74 4f 70 74 | 69 6f 6e 73 3a 0d ff 00 |ocketOpt|ions:...|
|000029a0| 17 0e 00 f7 fc 00 7e 02 | 1c 00 7e 00 01 05 10 f7 |......~.|..~.....|
|000029b0| 2d 80 ff 00 14 0e 01 f7 | 73 65 74 53 6f 63 6b 65 |-.......|setSocke|
|000029c0| 74 4f 70 74 69 6f 6e 73 | 3a ff 00 14 0e 00 f7 28 |tOptions|:......(|
|000029d0| 69 6e 74 29 ff 00 14 0e | 02 f7 66 64 ff 00 14 0e |int)....|..fd....|
|000029e0| 02 f7 0d ff 00 14 08 02 | f7 0d ff 00 14 0e 00 f7 |........|........|
|000029f0| 44 6f 65 73 20 6e 6f 74 | 68 69 6e 67 20 61 6e 64 |Does not|hing and|
|00002a00| 20 72 65 74 75 72 6e 73 | 20 ff 00 14 0e 01 f7 73 | returns| ......s|
|00002a10| 65 6c 66 ff 00 14 0e 00 | f7 2e 20 20 59 6f 75 20 |elf.....|.. You |
|00002a20| 63 61 6e 20 6f 76 65 72 | 72 69 64 65 20 74 68 69 |can over|ride thi|
|00002a30| 73 20 6d 65 74 68 6f 64 | 20 69 6e 20 73 75 62 63 |s method| in subc|
|00002a40| 6c 61 73 73 65 73 20 74 | 6f 20 73 65 74 20 61 6e |lasses t|o set an|
|00002a50| 79 20 6f 70 74 69 6f 6e | 73 20 74 68 61 74 20 79 |y option|s that y|
|00002a60| 6f 75 20 6c 69 6b 65 20 | 6f 6e 20 74 68 65 20 73 |ou like |on the s|
|00002a70| 6f 63 6b 65 74 27 73 20 | 66 69 6c 65 20 64 65 73 |ocket's |file des|
|00002a80| 63 72 69 70 74 6f 72 2e | 20 20 42 65 20 73 75 72 |criptor.| Be sur|
|00002a90| 65 20 74 6f 20 73 65 6e | 64 20 ff 00 14 0e 01 f7 |e to sen|d ......|
|00002aa0| 73 65 74 53 6f 63 6b 65 | 74 4f 70 74 69 6f 6e 73 |setSocke|tOptions|
|00002ab0| 3a ff 00 14 0e 00 f7 20 | 74 6f 20 ff 00 14 0e 01 |:...... |to .....|
|00002ac0| f7 73 75 70 65 72 ff 00 | 14 0e 00 f7 20 69 6e 20 |.super..|.... in |
|00002ad0| 79 6f 75 72 20 6f 77 6e | 20 6d 65 74 68 6f 64 2e |your own| method.|
|00002ae0| 20 20 ff 00 14 0e 00 f7 | 49 66 20 61 6e 20 6f 70 | ......|If an op|
|00002af0| 65 72 61 74 69 6f 6e 20 | 66 61 69 6c 73 20 73 6f |eration |fails so|
|00002b00| 20 74 68 61 74 20 79 6f | 75 20 64 6f 6e 27 74 20 | that yo|u don't |
|00002b10| 77 61 6e 74 20 74 68 65 | 20 53 6b 74 53 6f 63 6b |want the| SktSock|
|00002b20| 65 74 20 74 6f 20 62 65 | 20 69 6e 69 74 69 61 6c |et to be| initial|
|00002b30| 69 7a 65 64 2c 20 74 68 | 69 73 20 6d 65 74 68 6f |ized, th|is metho|
|00002b40| 64 20 73 68 6f 75 6c 64 | 20 72 65 74 75 72 6e 20 |d should| return |
|00002b50| ff 00 14 0e 01 f7 6e 69 | 6c ff 00 14 0e 00 f7 2e |......ni|l.......|
|00002b60| 20 20 ff 00 14 0e 00 f7 | 41 6e 20 53 6b 74 53 6f | ......|An SktSo|
|00002b70| 63 6b 65 74 20 73 65 74 | 73 20 74 68 65 20 46 4e |cket set|s the FN|
|00002b80| 44 45 4c 41 59 20 66 6c | 61 67 20 66 6f 72 20 69 |DELAY fl|ag for i|
|00002b90| 74 73 65 6c 66 20 28 73 | 65 65 20 ff 00 14 0e 02 |tself (s|ee .....|
|00002ba0| f7 66 63 6e 74 6c ff 00 | 14 0e 00 f7 28 32 29 20 |.fcntl..|....(2) |
|00002bb0| 69 6e 20 74 68 65 20 55 | 4e 49 58 20 6d 61 6e 75 |in the U|NIX manu|
|00002bc0| 61 6c 20 70 61 67 65 73 | 29 ff 00 14 0e 00 f7 2c |al pages|)......,|
|00002bd0| 20 73 6f 20 79 6f 75 20 | 64 6f 6e 27 74 20 6e 65 | so you |don't ne|
|00002be0| 65 64 20 74 6f 20 73 65 | 74 20 74 68 61 74 20 6f |ed to se|t that o|
|00002bf0| 6e 65 2e ff 00 14 0e 00 | f7 0d ff 00 14 08 00 f7 |ne......|........|
|00002c00| 0d ff 00 14 0e 00 f7 53 | 65 65 20 61 6c 73 6f 3a |.......S|ee also:|
|00002c10| 20 ff 00 17 0e 00 f7 ff | 00 17 0e 00 f7 2d 80 ff | .......|.....-..|
|00002c20| 00 14 0e 01 f7 69 6e 69 | 74 4f 6e 46 64 3a 77 69 |.....ini|tOnFd:wi|
|00002c30| 74 68 4d 61 6e 61 67 65 | 72 3a ff 00 14 0e 00 f7 |thManage|r:......|
|00002c40| 2c 20 ff 00 17 0e 00 f7 | 2d 80 ff 00 14 0e 01 f7 |, ......|-.......|
|00002c50| 69 6e 69 74 4f 6e 41 64 | 64 72 65 73 73 3a 61 6e |initOnAd|dress:an|
|00002c60| 64 50 6f 72 74 3a ff 00 | 14 0e 00 f7 2c 20 ff 00 |dPort:..|...., ..|
|00002c70| 17 0e 00 f7 2d 80 ff 00 | 14 0e 01 f7 69 6e 69 74 |....-...|....init|
|00002c80| 4f 6e 48 6f 73 74 6e 61 | 6d 65 3a 61 6e 64 50 6f |OnHostna|me:andPo|
|00002c90| 72 74 3a ff 00 14 0e 00 | f7 2c 20 66 63 6e 74 6c |rt:.....|., fcntl|
|00002ca0| 28 32 29 2c 20 73 65 74 | 73 6f 63 6b 6f 70 74 28 |(2), set|sockopt(|
|00002cb0| 32 29 ff 00 14 0e 01 f7 | 0d 01 8a ff 00 14 0e 00 |2)......|........|
|00002cc0| f7 54 68 69 73 20 6d 65 | 74 68 6f 64 20 61 6c 73 |.This me|thod als|
|00002cd0| 6f 20 69 6e 76 6f 6b 65 | 73 20 ff 00 14 0e 01 f7 |o invoke|s ......|
|00002ce0| 73 65 74 53 6f 63 6b 65 | 74 4f 70 74 69 6f 6e 73 |setSocke|tOptions|
|00002cf0| 3a ff 00 14 0e 00 f7 2c | 20 73 6f 20 74 68 61 74 |:......,| so that|
|00002d00| 20 79 6f 75 20 6d 61 79 | 20 73 65 74 20 66 69 6c | you may| set fil|
|00002d10| 65 20 64 65 73 63 72 69 | 70 74 6f 72 20 66 6c 61 |e descri|ptor fla|
|00002d20| 67 73 20 69 6e 20 73 75 | 62 63 6c 61 73 73 65 73 |gs in su|bclasses|
|00002d30| ff 00 14 0e 00 f7 2e 20 | 20 49 66 20 ff 00 14 0e |....... | If ....|
|00002d40| 01 f7 73 65 74 53 6f 63 | 6b 65 74 4f 70 74 69 6f |..setSoc|ketOptio|
|00002d50| 6e 73 3a ff 00 14 0e 00 | f7 20 72 65 74 75 72 6e |ns:.....|. return|
|00002d60| 73 20 ff 00 14 0e 01 f7 | 6e 69 6c ff 00 14 0e 00 |s ......|nil.....|
|00002d70| f7 2c 20 74 68 65 20 69 | 6e 69 74 69 61 6c 69 7a |., the i|nitializ|
|00002d80| 61 74 69 6f 6e 20 69 73 | 20 63 61 6e 63 65 6c 6c |ation is| cancell|
|00002d90| 65 64 20 61 6e 64 20 72 | 65 74 75 72 6e 73 20 ff |ed and r|eturns .|
|00002da0| 00 14 0e 01 f7 6e 69 6c | ff 00 14 0e 00 f7 2e 20 |.....nil|....... |
|00002db0| 20 53 6b 74 53 6f 63 6b | 65 74 73 20 73 65 74 20 | SktSock|ets set |
|00002dc0| 74 68 65 20 46 4e 44 45 | 4c 41 59 20 66 69 6c 65 |the FNDE|LAY file|
|00002dd0| 20 64 65 73 63 72 69 70 | 74 6f 72 20 66 6c 61 67 | descrip|tor flag|
|00002de0| 20 66 6f 72 20 74 68 65 | 6d 73 65 6c 76 65 73 20 | for the|mselves |
|00002df0| 28 73 65 65 20 ff 00 14 | 0e 02 f7 66 63 6e 74 6c |(see ...|...fcntl|
|00002e00| ff 00 14 0e 00 f7 28 32 | 29 20 69 6e 20 74 68 65 |......(2|) in the|
|00002e10| 20 55 4e 49 58 20 6d 61 | 6e 75 61 6c 20 70 61 67 | UNIX ma|nual pag|
|00002e20| 65 73 29 2c 20 73 6f 20 | 79 6f 75 20 6e 65 65 64 |es), so |you need|
|00002e30| 6e 27 74 20 73 65 74 20 | 74 68 61 74 20 6f 70 74 |n't set |that opt|
|00002e40| 69 6f 6e 2e 0d 00 07 ff | 00 14 08 00 f7 0d 01 8a |ion.....|........|
|00002e50| ff 00 14 0e 00 f7 54 68 | 69 73 20 6d 65 74 68 6f |......Th|is metho|
|00002e60| 64 20 61 6c 73 6f 20 69 | 6e 76 6f 6b 65 73 20 ff |d also i|nvokes .|
|00002e70| 00 14 0e 01 f7 73 65 74 | 53 6f 63 6b 65 74 4f 70 |.....set|SocketOp|
|00002e80| 74 69 6f 6e 73 3a ff 00 | 14 0e 00 f7 2c 20 73 6f |tions:..|...., so|
|00002e90| 20 74 68 61 74 20 79 6f | 75 20 6d 61 79 20 73 65 | that yo|u may se|
|00002ea0| 74 20 66 69 6c 65 20 64 | 65 73 63 72 69 70 74 6f |t file d|escripto|
|00002eb0| 72 20 66 6c 61 67 73 20 | 69 6e 20 73 75 62 63 6c |r flags |in subcl|
|00002ec0| 61 73 73 65 73 ff 00 14 | 0e 00 f7 2e 20 20 49 66 |asses...|.... If|
|00002ed0| 20 ff 00 14 0e 01 f7 73 | 65 74 53 6f 63 6b 65 74 | ......s|etSocket|
|00002ee0| 4f 70 74 69 6f 6e 73 3a | ff 00 14 0e 00 f7 20 72 |Options:|...... r|
|00002ef0| 65 74 75 72 6e 73 20 ff | 00 14 0e 01 f7 6e 69 6c |eturns .|.....nil|
|00002f00| ff 00 14 0e 00 f7 2c 20 | 74 68 65 20 69 6e 69 74 |......, |the init|
|00002f10| 69 61 6c 69 7a 61 74 69 | 6f 6e 20 69 73 20 63 61 |ializati|on is ca|
|00002f20| 6e 63 65 6c 6c 65 64 20 | 61 6e 64 20 72 65 74 75 |ncelled |and retu|
|00002f30| 72 6e 73 20 ff 00 14 0e | 01 f7 6e 69 6c ff 00 14 |rns ....|..nil...|
|00002f40| 0e 00 f7 2e 20 20 53 6b | 74 53 6f 63 6b 65 74 73 |.... Sk|tSockets|
|00002f50| 20 73 65 74 20 74 68 65 | 20 46 4e 44 45 4c 41 59 | set the| FNDELAY|
|00002f60| 20 66 69 6c 65 20 64 65 | 73 63 72 69 70 74 6f 72 | file de|scriptor|
|00002f70| 20 66 6c 61 67 20 66 6f | 72 20 74 68 65 6d 73 65 | flag fo|r themse|
|00002f80| 6c 76 65 73 20 28 73 65 | 65 20 ff 00 14 0e 02 f7 |lves (se|e ......|
|00002f90| 66 63 6e 74 6c ff 00 14 | 0e 00 f7 28 32 29 20 69 |fcntl...|...(2) i|
|00002fa0| 6e 20 74 68 65 20 55 4e | 49 58 20 6d 61 6e 75 61 |n the UN|IX manua|
|00002fb0| 6c 20 70 61 67 65 73 29 | 2c 20 73 6f 20 79 6f 75 |l pages)|, so you|
|00002fc0| 20 6e 65 65 64 6e 27 74 | 20 73 65 74 20 74 68 61 | needn't| set tha|
|00002fd0| 74 20 6f 70 74 69 6f 6e | 2e 0d 00 07 ff 00 14 08 |t option|........|
|00002fe0| 00 f7 0d 00 ab ff 00 14 | 0e 00 f7 4d 45 54 48 4f |........|...METHO|
|00002ff0| 44 20 54 59 50 45 53 0d | ff 00 14 08 00 f7 0d fc |D TYPES.|........|
|00003000| 00 7e 02 1c 00 7e 00 01 | 05 58 f7 ff 00 14 0e 00 |.~...~..|.X......|
|00003010| f7 49 6e 69 74 69 61 6c | 69 7a 69 6e 67 20 61 6e |.Initial|izing an|
|00003020| 64 20 66 72 65 65 69 6e | 67 20 53 6b 74 53 6f 63 |d freein|g SktSoc|
|00003030| 6b 65 74 20 6f 62 6a 65 | 63 74 73 0d fc 01 56 02 |ket obje|cts...V.|
|00003040| 1c 01 56 00 01 f7 ff 00 | 17 0e 00 f7 2d 80 ff 00 |..V.....|....-...|
|00003050| 14 0e 00 f7 69 6e 69 74 | 4f 6e 46 64 3a 57 69 74 |....init|OnFd:Wit|
|00003060| 68 4d 61 6e 61 67 65 72 | 3a 0d ff 00 17 0e 00 f7 |hManager|:.......|
|00003070| 2d 80 ff 00 14 0e 00 f7 | 69 6e 69 74 4f 6e 48 6f |-.......|initOnHo|
|00003080| 73 74 6e 61 6d 65 3a 61 | 6e 64 50 6f 72 74 3a 0d |stname:a|ndPort:.|
|00003090| 00 25 ff 00 17 0e 00 f7 | 2d 80 ff 00 14 0e 00 f7 |.%......|-.......|
|000030a0| 69 6e 69 74 4f 6e 41 64 | 64 72 65 73 73 3a 61 6e |initOnAd|dress:an|
|000030b0| 64 50 6f 72 74 3a 0d 02 | 38 fc 00 6c 02 1c 00 6c |dPort:..|8..l...l|
|000030c0| 00 01 f7 ff 00 14 0e 01 | f7 69 6e 69 74 4f 6e 41 |........|.initOnA|
|000030d0| 64 64 72 65 73 73 3a 61 | 6e 64 50 6f 72 74 3a 0d |ddress:a|ndPort:.|
|000030e0| fc 00 99 02 1c 00 7e 00 | 01 05 10 f7 ff 00 17 0e |......~.|........|
|000030f0| 00 f7 2d 80 ff 00 14 0e | 01 f7 69 6e 69 74 4f 6e |..-.....|..initOn|
|00003100| 41 64 64 72 65 73 73 3a | ff 00 14 0e 00 f7 28 63 |Address:|......(c|
|00003110| 6f 6e 73 74 20 63 68 61 | 72 20 2a 29 ff 00 14 0e |onst cha|r *)....|
|00003120| 02 f7 68 6f 73 74 41 64 | 64 72 65 73 73 ff 00 14 |..hostAd|dress...|
|00003130| 0e 00 f7 20 ff 00 14 0e | 01 f7 61 6e 64 50 6f 72 |... ....|..andPor|
|00003140| 74 ff 00 14 0e 01 f7 3a | ff 00 14 0e 00 f7 28 69 |t......:|......(i|
|00003150| 6e 74 29 ff 00 14 0e 02 | f7 70 6f 72 74 0d ff 00 |nt).....|.port...|
|00003160| 14 08 02 f7 fc 00 7e 02 | 1c 00 7e 00 01 05 10 f7 |......~.|..~.....|
|00003170| 0d ff 00 14 0e 00 f7 ff | 00 14 0e 00 f7 41 74 74 |........|.....Att|
|00003180| 65 6d 70 74 73 20 74 6f | 20 63 6f 6e 6e 65 63 74 |empts to| connect|
|00003190| 20 74 6f 20 61 20 73 65 | 72 76 65 72 20 6f 6e 20 | to a se|rver on |
|000031a0| 74 68 65 20 68 6f 73 74 | 20 61 74 20 61 64 64 72 |the host| at addr|
|000031b0| 65 73 73 20 ff 00 14 0e | 02 f7 68 6f 73 74 41 64 |ess ....|..hostAd|
|000031c0| 64 72 65 73 73 ff 00 14 | 0e 00 f7 20 28 61 20 73 |dress...|... (a s|
|000031d0| 74 72 69 6e 67 20 69 6e | 20 49 6e 74 65 72 6e 65 |tring in| Interne|
|000031e0| 74 20 64 6f 74 20 6e 6f | 74 61 74 69 6f 6e 29 ff |t dot no|tation).|
|000031f0| 00 14 0e 00 f7 2c ff 00 | 14 0e 00 f7 20 70 6f 72 |.....,..|.... por|
|00003200| 74 20 ff 00 14 0e 02 f7 | 70 6f 72 74 ff 00 14 0e |t ......|port....|
|00003210| 00 f7 2e 20 20 54 68 65 | 20 53 6b 74 53 6f 63 6b |... The| SktSock|
|00003220| 65 74 27 73 20 68 6f 73 | 74 20 61 64 64 72 65 73 |et's hos|t addres|
|00003230| 73 20 61 6e 64 20 6e 61 | 6d 65 20 61 72 65 20 72 |s and na|me are r|
|00003240| 65 63 6f 72 64 65 64 2e | 20 20 49 66 20 61 6c 6c |ecorded.| If all|
|00003250| 20 67 6f 65 73 20 77 65 | 6c 6c 2c 20 72 65 74 75 | goes we|ll, retu|
|00003260| 72 6e 73 20 ff 00 14 0e | 01 f7 73 65 6c 66 ff 00 |rns ....|..self..|
|00003270| 14 0e 00 f7 3b 20 6f 74 | 68 65 72 77 69 73 65 20 |....; ot|herwise |
|00003280| 69 74 20 72 65 74 75 72 | 6e 73 20 ff 00 14 0e 01 |it retur|ns .....|
|00003290| f7 6e 69 6c ff 00 14 0e | 00 f7 2e 20 20 45 72 72 |.nil....|... Err|
|000032a0| 6f 72 20 6d 65 73 73 61 | 67 65 73 20 61 72 65 20 |or messa|ges are |
|000032b0| 70 72 69 6e 74 65 64 20 | 74 6f 20 73 74 64 65 72 |printed |to stder|
|000032c0| 72 20 64 65 74 61 69 6c | 69 6e 67 20 74 68 65 20 |r detail|ing the |
|000032d0| 72 65 61 73 6f 6e 20 66 | 6f 72 20 66 61 69 6c 75 |reason f|or failu|
|000032e0| 72 65 2e ff 00 14 0e 00 | f7 0d ff 00 14 08 00 f7 |re......|........|
|000032f0| 0d 02 8c fc 00 6c 02 1c | 00 6c 00 01 f7 ff 00 14 |.....l..|.l......|
|00003300| 0e 01 f7 69 6e 69 74 4f | 6e 46 64 3a 77 69 74 68 |...initO|nFd:with|
|00003310| 4d 61 6e 61 67 65 72 ff | 00 14 0e 01 f7 3a 0d fc |Manager.|.....:..|
|00003320| 00 99 02 1c 00 7e 00 01 | 05 10 f7 ff 00 17 0e 00 |.....~..|........|
|00003330| f7 2d 80 ff 00 14 0e 01 | f7 69 6e 69 74 ff 00 14 |.-......|.init...|
|00003340| 0e 00 f7 20 ff 00 14 0e | 01 f7 4f ff 00 14 0e 01 |... ....|..O.....|
|00003350| f7 6e 46 64 3a ff 00 14 | 0e 00 f7 28 69 6e 74 29 |.nFd:...|...(int)|
|00003360| ff 00 14 0e 02 f7 73 65 | 72 76 69 63 65 53 6f 63 |......se|rviceSoc|
|00003370| 6b 65 74 46 64 ff 00 14 | 0e 00 f7 20 ff 00 14 0e |ketFd...|... ....|
|00003380| 01 f7 77 ff 00 14 0e 01 | f7 69 74 68 4d ff 00 14 |..w.....|.ithM...|
|00003390| 0e 01 f7 61 6e 61 67 65 | 72 ff 00 14 0e 01 f7 3a |...anage|r......:|
|000033a0| ff 00 14 0e 00 f7 28 53 | 6b 74 53 6f 63 6b 65 74 |......(S|ktSocket|
|000033b0| 4d 61 6e 61 67 65 72 80 | 2a 29 ff 00 14 0e 02 f7 |Manager.|*)......|
|000033c0| 61 ff 00 14 0e 02 f7 4d | 61 6e 61 67 65 72 0d ff |a......M|anager..|
|000033d0| 00 14 08 02 f7 fc 00 7e | 02 1c 00 7e 00 01 05 10 |.......~|...~....|
|000033e0| f7 0d ff 00 14 0e 00 f7 | ff 00 14 0e 00 f7 41 74 |........|......At|
|000033f0| 74 65 6d 70 74 73 20 74 | 6f 20 61 63 63 65 70 74 |tempts t|o accept|
|00003400| 20 61 20 63 6f 6e 6e 65 | 63 74 69 6f 6e 20 74 6f | a conne|ction to|
|00003410| 20 74 68 65 20 73 65 6e | 64 65 72 27 73 20 73 65 | the sen|der's se|
|00003420| 72 76 69 63 65 20 73 6f | 63 6b 65 74 20 77 69 74 |rvice so|cket wit|
|00003430| 68 20 66 69 6c 65 20 64 | 65 73 63 72 69 70 74 6f |h file d|escripto|
|00003440| 72 20 ff 00 14 0e 02 f7 | 73 65 72 76 69 63 65 53 |r ......|serviceS|
|00003450| 6f 63 6b 65 74 46 64 2e | 20 20 ff 00 14 0e 00 f7 |ocketFd.| ......|
|00003460| ff 00 14 0e 02 f7 61 ff | 00 14 0e 02 f7 4d 61 6e |......a.|.....Man|
|00003470| 61 67 65 72 ff 00 14 0e | 00 f7 ff 00 14 0e 00 f7 |ager....|........|
|00003480| 20 6d 75 73 74 20 62 65 | 20 6f 66 20 63 6c 61 73 | must be| of clas|
|00003490| 73 20 53 6b 74 53 6f 63 | 6b 65 74 4d 61 6e 61 67 |s SktSoc|ketManag|
|000034a0| 65 72 20 6f 72 20 61 20 | 73 75 62 63 6c 61 73 73 |er or a |subclass|
|000034b0| 2e 20 20 54 68 65 20 53 | 6b 74 53 6f 63 6b 65 74 |. The S|ktSocket|
|000034c0| 27 73 20 68 6f 73 74 20 | 61 64 64 72 65 73 73 20 |'s host |address |
|000034d0| 61 6e 64 20 6e 61 6d 65 | 20 61 72 65 20 72 65 63 |and name| are rec|
|000034e0| 6f 72 64 65 64 2e 20 20 | 49 66 20 61 6c 6c 20 67 |orded. |If all g|
|000034f0| 6f 65 73 20 77 65 6c 6c | 2c 20 72 65 74 75 72 6e |oes well|, return|
|00003500| 73 20 ff 00 14 0e 01 f7 | 73 65 6c 66 ff 00 14 0e |s ......|self....|
|00003510| 00 f7 3b 20 6f 74 68 65 | 72 77 69 73 65 20 69 74 |..; othe|rwise it|
|00003520| 20 72 65 74 75 72 6e 73 | 20 ff 00 14 0e 01 f7 6e | returns| ......n|
|00003530| 69 6c ff 00 14 0e 00 f7 | 2e 20 20 49 66 20 61 20 |il......|. If a |
|00003540| 53 6b 74 53 6f 63 6b 65 | 74 4d 61 6e 61 67 65 72 |SktSocke|tManager|
|00003550| 20 69 73 20 73 70 65 63 | 69 66 69 65 64 2c 20 69 | is spec|ified, i|
|00003560| 74 20 77 69 6c 6c 20 6c | 6f 67 20 61 6e 79 20 65 |t will l|og any e|
|00003570| 72 72 6f 72 20 6d 65 73 | 73 61 67 65 73 2e 0d 01 |rror mes|sages...|
|00003580| f1 fc 00 6c 02 1c 00 6c | 00 01 f7 ff 00 14 0e 01 |...l...l|........|
|00003590| f7 69 6e 69 74 4f 6e 48 | 6f 73 74 6e 61 6d 65 3a |.initOnH|ostname:|
|000035a0| 61 6e 64 50 6f 72 74 3a | 0d fc 00 99 02 1c 00 7e |andPort:|.......~|
|000035b0| 00 01 05 10 f7 ff 00 17 | 0e 00 f7 2d 80 ff 00 14 |........|...-....|
|000035c0| 0e 01 f7 69 6e 69 74 4f | 6e 48 6f 73 74 6e 61 6d |...initO|nHostnam|
|000035d0| 65 3a ff 00 14 0e 00 f7 | 28 63 6f 6e 73 74 20 63 |e:......|(const c|
|000035e0| 68 61 72 20 2a 29 ff 00 | 14 0e 02 f7 68 6f 73 74 |har *)..|....host|
|000035f0| 4e 61 6d 65 ff 00 14 0e | 00 f7 20 ff 00 14 0e 01 |Name....|.. .....|
|00003600| f7 61 6e 64 50 6f 72 74 | ff 00 14 0e 01 f7 3a ff |.andPort|......:.|
|00003610| 00 14 0e 00 f7 28 69 6e | 74 29 ff 00 14 0e 02 f7 |.....(in|t)......|
|00003620| 70 6f 72 74 0d ff 00 14 | 08 02 f7 fc 00 7e 02 1c |port....|.....~..|
|00003630| 00 7e 00 01 05 10 f7 0d | ff 00 14 0e 00 f7 ff 00 |.~......|........|
|00003640| 14 0e 00 f7 41 74 74 65 | 6d 70 74 73 20 74 6f 20 |....Atte|mpts to |
|00003650| 63 6f 6e 6e 65 63 74 20 | 74 6f 20 61 20 73 65 72 |connect |to a ser|
|00003660| 76 65 72 20 6f 6e 20 68 | 6f 73 74 20 ff 00 14 0e |ver on h|ost ....|
|00003670| 02 f7 68 6f 73 74 4e 61 | 6d 65 ff 00 14 0e 00 f7 |..hostNa|me......|
|00003680| 20 61 74 20 70 6f 72 74 | 20 ff 00 14 0e 02 f7 70 | at port| ......p|
|00003690| 6f 72 74 ff 00 14 0e 00 | f7 2e 20 20 54 68 65 20 |ort.....|.. The |
|000036a0| 53 6b 74 53 6f 63 6b 65 | 74 27 73 20 68 6f 73 74 |SktSocke|t's host|
|000036b0| 20 61 64 64 72 65 73 73 | 20 61 6e 64 20 6e 61 6d | address| and nam|
|000036c0| 65 20 61 72 65 20 72 65 | 63 6f 72 64 65 64 2e 20 |e are re|corded. |
|000036d0| 20 49 66 20 61 6c 6c 20 | 67 6f 65 73 20 77 65 6c | If all |goes wel|
|000036e0| 6c 2c 20 72 65 74 75 72 | 6e 73 20 ff 00 14 0e 01 |l, retur|ns .....|
|000036f0| f7 73 65 6c 66 ff 00 14 | 0e 00 f7 3b 20 6f 74 68 |.self...|...; oth|
|00003700| 65 72 77 69 73 65 20 69 | 74 20 72 65 74 75 72 6e |erwise i|t return|
|00003710| 73 20 ff 00 14 0e 01 f7 | 6e 69 6c ff 00 14 0e 00 |s ......|nil.....|
|00003720| f7 2e 20 20 45 72 72 6f | 72 20 6d 65 73 73 61 67 |.. Erro|r messag|
|00003730| 65 73 20 61 72 65 20 70 | 72 69 6e 74 65 64 20 74 |es are p|rinted t|
|00003740| 6f 20 73 74 64 65 72 72 | 20 64 65 74 61 69 6c 69 |o stderr| detaili|
|00003750| 6e 67 20 74 68 65 20 72 | 65 61 73 6f 6e 20 66 6f |ng the r|eason fo|
|00003760| 72 20 66 61 69 6c 75 72 | 65 2e 0d ff 00 14 08 00 |r failur|e.......|
|00003770| f7 0d 01 23 ff 00 14 0e | 00 f7 54 68 69 73 20 6d |...#....|..This m|
|00003780| 65 74 68 6f 64 2c 20 61 | 6c 6f 6e 67 20 77 69 74 |ethod, a|long wit|
|00003790| 68 20 ff 00 14 0e 01 f7 | 69 6e 69 74 4f 6e 48 6f |h ......|initOnHo|
|000037a0| 73 74 6e 61 6d 65 3a 61 | 6e 64 50 6f 72 74 3a ff |stname:a|ndPort:.|
|000037b0| 00 14 0e 00 f7 20 61 6e | 64 20 ff 00 14 0e 01 f7 |..... an|d ......|
|000037c0| 69 6e 69 74 4f 6e 46 64 | 3a 77 69 74 68 4d 61 6e |initOnFd|:withMan|
|000037d0| 61 67 65 72 3a ff 00 14 | 0e 00 f7 2c 20 61 72 65 |ager:...|..., are|
|000037e0| 20 74 68 65 20 64 65 73 | 69 67 6e 61 74 65 64 20 | the des|ignated |
|000037f0| 69 6e 69 74 69 61 6c 69 | 7a 65 72 73 20 66 6f 72 |initiali|zers for|
|00003800| 20 53 6b 74 53 6f 63 6b | 65 74 20 6f 62 6a 65 63 | SktSock|et objec|
|00003810| 74 2e 20 20 42 65 20 73 | 75 72 65 20 74 6f 20 73 |t. Be s|ure to s|
|00003820| 65 6e 64 20 6f 6e 65 20 | 6f 66 20 74 68 65 73 65 |end one |of these|
|00003830| 20 6d 65 73 73 61 67 65 | 73 20 74 6f 20 ff 00 14 | message|s to ...|
|00003840| 0e 01 f7 73 75 70 65 72 | ff 00 14 0e 00 f7 20 69 |...super|...... i|
|00003850| 6e 20 61 6e 79 20 73 75 | 62 63 6c 61 73 73 20 ff |n any su|bclass .|
|00003860| 00 14 0e 01 f7 69 6e 69 | 74 2e 2e 2e ff 00 14 0e |.....ini|t.......|
|00003870| 00 f7 20 6d 65 74 68 6f | 64 73 20 62 61 73 65 64 |.. metho|ds based|
|00003880| 20 6f 6e 20 79 6f 75 72 | 20 6e 65 65 64 73 2e ff | on your| needs..|
|00003890| 00 14 08 00 f7 0d 0d 00 | ac ff 00 14 0e 00 f7 53 |........|.......S|
|000038a0| 65 65 20 61 6c 73 6f 3a | 20 ff 00 17 0e 00 f7 2d |ee also:| ......-|
|000038b0| 80 ff 00 14 0e 01 f7 69 | 6e 69 74 4f 6e 48 6f 73 |.......i|nitOnHos|
|000038c0| 74 6e 61 6d 65 3a 61 6e | 64 50 6f 72 74 3a ff 00 |tname:an|dPort:..|
|000038d0| 14 0e 00 f7 2c 20 ff 00 | 17 0e 00 f7 2d 80 ff 00 |...., ..|....-...|
|000038e0| 14 0e 01 f7 69 6e 69 74 | 4f 6e 46 64 3a 77 69 74 |....init|OnFd:wit|
|000038f0| 68 4d 61 6e 61 67 65 72 | 3a ff 00 14 0e 00 f7 2c |hManager|:......,|
|00003900| 20 ff 00 17 0e 00 f7 2d | 80 ff 00 14 0e 01 f7 73 | ......-|.......s|
|00003910| 65 74 53 6f 63 6b 65 74 | 4f 70 74 69 6f 6e 73 3a |etSocket|Options:|
|00003920| ff 00 14 0e 00 f7 2c 20 | ff 00 17 0e 00 f7 2d 80 |......, |......-.|
|00003930| ff 00 14 0e 01 f7 73 65 | 74 55 73 65 72 ff 00 14 |......se|tUser...|
|00003940| 0e 01 f7 3a 0d 01 24 ff | 00 14 0e 00 f7 54 68 69 |...:..$.|.....Thi|
|00003950| 73 20 6d 65 74 68 6f 64 | 2c 20 61 6c 6f 6e 67 20 |s method|, along |
|00003960| 77 69 74 68 20 ff 00 14 | 0e 01 f7 69 6e 69 74 4f |with ...|...initO|
|00003970| 6e 41 64 64 72 65 73 73 | 3a 61 6e 64 50 6f 72 74 |nAddress|:andPort|
|00003980| 3a ff 00 14 0e 00 f7 20 | 61 6e 64 20 ff 00 14 0e |:...... |and ....|
|00003990| 01 f7 69 6e 69 74 4f 6e | 48 6f 73 74 6e 61 6d 65 |..initOn|Hostname|
|000039a0| 3a 61 6e 64 50 6f 72 74 | 3a ff 00 14 0e 00 f7 2c |:andPort|:......,|
|000039b0| 20 61 72 65 20 74 68 65 | 20 64 65 73 69 67 6e 61 | are the| designa|
|000039c0| 74 65 64 20 69 6e 69 74 | 69 61 6c 69 7a 65 72 73 |ted init|ializers|
|000039d0| 20 66 6f 72 20 53 6b 74 | 53 6f 63 6b 65 74 20 6f | for Skt|Socket o|
|000039e0| 62 6a 65 63 74 2e 20 20 | 42 65 20 73 75 72 65 20 |bject. |Be sure |
|000039f0| 74 6f 20 73 65 6e 64 20 | 6f 6e 65 20 6f 66 20 74 |to send |one of t|
|00003a00| 68 65 73 65 20 6d 65 73 | 73 61 67 65 73 20 74 6f |hese mes|sages to|
|00003a10| 20 ff 00 14 0e 01 f7 73 | 75 70 65 72 ff 00 14 0e | ......s|uper....|
|00003a20| 00 f7 20 69 6e 20 61 6e | 79 20 73 75 62 63 6c 61 |.. in an|y subcla|
|00003a30| 73 73 20 ff 00 14 0e 01 | f7 69 6e 69 74 2e 2e 2e |ss .....|.init...|
|00003a40| ff 00 14 0e 00 f7 20 6d | 65 74 68 6f 64 73 20 62 |...... m|ethods b|
|00003a50| 61 73 65 64 20 6f 6e 20 | 79 6f 75 72 20 6e 65 65 |ased on |your nee|
|00003a60| 64 73 2e ff 00 14 08 00 | f7 0d 0d 00 ba ff 00 14 |ds......|........|
|00003a70| 0e 00 f7 53 65 65 20 61 | 6c 73 6f 3a 20 20 ff 00 |...See a|lso: ..|
|00003a80| 17 0e 00 f7 2d 80 ff 00 | 14 0e 01 f7 69 6e 69 74 |....-...|....init|
|00003a90| 4f 6e 41 64 64 72 65 73 | 73 3a 61 6e 64 50 6f 72 |OnAddres|s:andPor|
|00003aa0| 74 3a ff 00 14 0e 00 f7 | 2c 20 ff 00 17 0e 00 f7 |t:......|, ......|
|00003ab0| 2d 80 ff 00 14 0e 01 f7 | 69 6e 69 74 4f 6e 48 6f |-.......|initOnHo|
|00003ac0| 73 74 6e 61 6d 65 3a 61 | 6e 64 50 6f 72 74 3a ff |stname:a|ndPort:.|
|00003ad0| 00 14 0e 00 f7 2c 20 ff | 00 17 0e 00 f7 2d 80 ff |....., .|.....-..|
|00003ae0| 00 14 0e 01 f7 73 65 74 | 53 6f 63 6b 65 74 4f 70 |.....set|SocketOp|
|00003af0| 74 69 6f 6e 73 3a ff 00 | 14 0e 00 f7 2c 20 ff 00 |tions:..|...., ..|
|00003b00| 17 0e 00 f7 2d 80 ff 00 | 14 0e 01 f7 73 65 74 55 |....-...|....setU|
|00003b10| 73 65 72 ff 00 14 0e 01 | f7 3a ff 00 14 0e 00 f7 |ser.....|.:......|
|00003b20| ff 00 14 0e 01 f7 0d 01 | 89 ff 00 14 0e 00 f7 54 |........|.......T|
|00003b30| 68 69 73 20 6d 65 74 68 | 6f 64 20 61 6c 73 6f 20 |his meth|od also |
|00003b40| 69 6e 76 6f 6b 65 73 20 | ff 00 14 0e 01 f7 73 65 |invokes |......se|
|00003b50| 74 53 6f 63 6b 65 4f 70 | 74 69 6f 6e 73 3a ff 00 |tSockeOp|tions:..|
|00003b60| 14 0e 00 f7 2c 20 73 6f | 20 74 68 61 74 20 79 6f |...., so| that yo|
|00003b70| 75 20 6d 61 79 20 73 65 | 74 20 66 69 6c 65 20 64 |u may se|t file d|
|00003b80| 65 73 63 72 69 70 74 6f | 72 20 66 6c 61 67 73 20 |escripto|r flags |
|00003b90| 69 6e 20 73 75 62 63 6c | 61 73 73 65 73 ff 00 14 |in subcl|asses...|
|00003ba0| 0e 00 f7 2e 20 20 49 66 | 20 ff 00 14 0e 01 f7 73 |.... If| ......s|
|00003bb0| 65 74 53 6f 63 6b 65 74 | 4f 70 74 69 6f 6e 73 3a |etSocket|Options:|
|00003bc0| ff 00 14 0e 00 f7 20 72 | 65 74 75 72 6e 73 20 ff |...... r|eturns .|
|00003bd0| 00 14 0e 01 f7 6e 69 6c | ff 00 14 0e 00 f7 2c 20 |.....nil|......, |
|00003be0| 74 68 65 20 69 6e 69 74 | 69 61 6c 69 7a 61 74 69 |the init|ializati|
|00003bf0| 6f 6e 20 69 73 20 63 61 | 6e 63 65 6c 6c 65 64 20 |on is ca|ncelled |
|00003c00| 61 6e 64 20 72 65 74 75 | 72 6e 73 20 ff 00 14 0e |and retu|rns ....|
|00003c10| 01 f7 6e 69 6c ff 00 14 | 0e 00 f7 2e 20 20 53 6b |..nil...|.... Sk|
|00003c20| 74 53 6f 63 6b 65 74 73 | 20 73 65 74 20 74 68 65 |tSockets| set the|
|00003c30| 20 46 4e 44 45 4c 41 59 | 20 66 69 6c 65 20 64 65 | FNDELAY| file de|
|00003c40| 73 63 72 69 70 74 6f 72 | 20 66 6c 61 67 20 66 6f |scriptor| flag fo|
|00003c50| 72 20 74 68 65 6d 73 65 | 6c 76 65 73 20 28 73 65 |r themse|lves (se|
|00003c60| 65 20 ff 00 14 0e 02 f7 | 66 63 6e 74 6c ff 00 14 |e ......|fcntl...|
|00003c70| 0e 00 f7 28 32 29 20 69 | 6e 20 74 68 65 20 55 4e |...(2) i|n the UN|
|00003c80| 49 58 20 6d 61 6e 75 61 | 6c 20 70 61 67 65 73 29 |IX manua|l pages)|
|00003c90| 2c 20 73 6f 20 79 6f 75 | 20 6e 65 65 64 6e 27 74 |, so you| needn't|
|00003ca0| 20 73 65 74 20 74 68 61 | 74 20 6f 70 74 69 6f 6e | set tha|t option|
|00003cb0| 2e 0d 01 22 ff 00 14 0e | 00 f7 54 68 69 73 20 6d |..."....|..This m|
|00003cc0| 65 74 68 6f 64 2c 20 61 | 6c 6f 6e 67 20 77 69 74 |ethod, a|long wit|
|00003cd0| 68 20 ff 00 14 0e 01 f7 | 69 6e 69 74 4f 6e 41 64 |h ......|initOnAd|
|00003ce0| 64 72 65 73 73 3a 61 6e | 64 50 6f 72 74 3a ff 00 |dress:an|dPort:..|
|00003cf0| 14 0e 00 f7 20 61 6e 64 | 20 ff 00 14 0e 01 f7 69 |.... and| ......i|
|00003d00| 6e 69 74 4f 6e 46 64 3a | 77 69 74 68 4d 61 6e 61 |nitOnFd:|withMana|
|00003d10| 67 65 72 3a ff 00 14 0e | 00 f7 2c 20 61 72 65 20 |ger:....|.., are |
|00003d20| 74 68 65 20 64 65 73 69 | 67 6e 61 74 65 64 20 69 |the desi|gnated i|
|00003d30| 6e 69 74 69 61 6c 69 7a | 65 72 73 20 66 6f 72 20 |nitializ|ers for |
|00003d40| 53 6b 74 53 6f 63 6b 65 | 74 20 6f 62 6a 65 63 74 |SktSocke|t object|
|00003d50| 2e 20 20 42 65 20 73 75 | 72 65 20 74 6f 20 73 65 |. Be su|re to se|
|00003d60| 6e 64 20 6f 6e 65 20 6f | 66 20 74 68 65 73 65 20 |nd one o|f these |
|00003d70| 6d 65 73 73 61 67 65 73 | 20 74 6f 20 ff 00 14 0e |messages| to ....|
|00003d80| 01 f7 73 75 70 65 72 ff | 00 14 0e 00 f7 20 69 6e |..super.|..... in|
|00003d90| 20 61 6e 79 20 73 75 62 | 63 6c 61 73 73 20 ff 00 | any sub|class ..|
|00003da0| 14 0e 01 f7 69 6e 69 74 | 2e 2e 2e ff 00 14 0e 00 |....init|........|
|00003db0| f7 20 6d 65 74 68 6f 64 | 73 20 62 61 73 65 64 20 |. method|s based |
|00003dc0| 6f 6e 20 79 6f 75 72 20 | 6e 65 65 64 73 2e ff 00 |on your |needs...|
|00003dd0| 14 08 00 f7 0d 0d 00 ad | ff 00 14 0e 00 f7 53 65 |........|......Se|
|00003de0| 65 20 61 6c 73 6f 3a 20 | 20 20 ff 00 17 0e 00 f7 |e also: | ......|
|00003df0| 2d 80 ff 00 14 0e 01 f7 | 69 6e 69 74 4f 6e 41 64 |-.......|initOnAd|
|00003e00| 64 72 65 73 73 3a 61 6e | 64 50 6f 72 74 3a ff 00 |dress:an|dPort:..|
|00003e10| 14 0e 00 f7 2c 20 ff 00 | 17 0e 00 f7 2d 80 ff 00 |...., ..|....-...|
|00003e20| 14 0e 01 f7 69 6e 69 74 | 4f 6e 46 64 3a 77 69 74 |....init|OnFd:wit|
|00003e30| 68 4d 61 6e 61 67 65 72 | 3a ff 00 14 0e 00 f7 2c |hManager|:......,|
|00003e40| 20 ff 00 17 0e 00 f7 2d | 80 ff 00 14 0e 01 f7 73 | ......-|.......s|
|00003e50| 65 74 53 6f 63 6b 65 74 | 4f 70 74 69 6f 6e 73 3a |etSocket|Options:|
|00003e60| ff 00 14 0e 00 f7 2c 20 | ff 00 17 0e 00 f7 2d 80 |......, |......-.|
|00003e70| ff 00 14 0e 01 f7 73 65 | 74 55 73 65 72 ff 00 14 |......se|tUser...|
|00003e80| 0e 01 f7 3a 0d 01 69 fc | 00 6c 02 1c 00 6c 00 01 |...:..i.|.l...l..|
|00003e90| f7 ff 00 14 0e 01 f7 6d | 61 6e 61 67 65 72 ff 00 |.......m|anager..|
|00003ea0| 14 0e 01 f7 0d fc 00 99 | 02 1c 00 7e 00 01 05 10 |........|...~....|
|00003eb0| f7 ff 00 17 0e 00 f7 2d | 80 ff 00 14 0e 00 f7 28 |.......-|.......(|
|00003ec0| 53 6b 74 53 6f 63 6b 65 | 74 4d 61 6e 61 67 65 72 |SktSocke|tManager|
|00003ed0| 20 2a 29 ff 00 14 0e 01 | f7 6d 61 6e 61 67 65 72 | *).....|.manager|
|00003ee0| ff 00 14 0e 02 f7 0d ff | 00 14 08 02 f7 fc 00 7e |........|.......~|
|00003ef0| 02 1c 00 7e 00 01 05 10 | f7 0d ff 00 14 0e 00 f7 |...~....|........|
|00003f00| ff 00 14 0e 00 f7 52 65 | 74 75 72 6e 73 20 74 68 |......Re|turns th|
|00003f10| 65 20 53 6b 74 53 6f 63 | 6b 65 74 4d 61 6e 61 67 |e SktSoc|ketManag|
|00003f20| 65 72 20 6f 62 6a 65 63 | 74 20 63 6f 6f 72 64 69 |er objec|t coordi|
|00003f30| 6e 61 74 69 6e 67 20 74 | 68 69 73 20 53 6b 74 53 |nating t|his SktS|
|00003f40| 6f 63 6b 65 74 20 77 69 | 74 68 20 6f 74 68 65 72 |ocket wi|th other|
|00003f50| 73 2e 20 20 54 68 69 73 | 20 69 73 20 61 20 68 61 |s. This| is a ha|
|00003f60| 6e 64 79 20 74 65 73 74 | 20 74 6f 20 66 69 6e 64 |ndy test| to find|
|00003f70| 20 6f 75 74 20 69 66 20 | 61 6e 20 53 6b 74 53 6f | out if |an SktSo|
|00003f80| 63 6b 65 74 20 69 73 20 | 72 75 6e 6e 69 6e 67 20 |cket is |running |
|00003f90| 61 73 20 61 20 73 65 72 | 76 65 72 20 6f 72 20 61 |as a ser|ver or a|
|00003fa0| 20 63 6c 69 65 6e 74 2e | 0d ff 00 14 08 00 f7 0d | client.|........|
|00003fb0| ff 00 14 0e 00 f7 53 65 | 65 20 61 6c 73 6f 3a 20 |......Se|e also: |
|00003fc0| ff 00 17 0e 00 f7 2d 80 | ff 00 14 0e 01 f7 69 6e |......-.|......in|
|00003fd0| 69 74 4f 6e 46 64 3a 77 | 69 74 68 4d 61 6e 61 67 |itOnFd:w|ithManag|
|00003fe0| 65 72 3a ff 00 14 0e 00 | f7 ff 00 14 0e 01 f7 0d |er:.....|........|
|00003ff0| 00 09 ff 00 14 08 01 f7 | 0d 0d 0d 02 22 64 00 02 |........|...."d..|
|00004000| 90 00 15 c7 00 06 e0 00 | 00 87 00 07 48 00 4e 65 |........|....H.Ne|
|00004010| 00 0a 13 00 a9 24 00 18 | 66 00 42 25 00 07 c8 00 |.....$..|f.B%....|
|00004020| 99 64 00 03 20 00 1b 65 | 00 03 47 00 29 24 00 0f |.d.. ..e|..G.)$..|
|00004030| 05 00 09 65 00 0f 0e 00 | 20 04 00 18 05 00 50 05 |...e....| .....P.|
|00004040| 00 11 5f 00 10 64 00 0f | 67 00 09 25 00 0c 82 00 |.._..d..|g..%....|
|00004050| 10 24 00 0c c3 00 09 25 | 00 0c cc 00 10 24 00 0d |.$.....%|.....$..|
|00004060| 06 00 09 25 00 0d 0f 00 | 10 24 00 0d 43 00 09 25 |...%....|.$..C..%|
|00004070| 00 0d 4c 00 20 24 00 0d | af 00 09 25 00 0d b8 00 |..L. $..|...%....|
|00004080| 20 24 00 0d fa 00 09 25 | 00 0e 03 00 20 24 00 0e | $.....%|.... $..|
|00004090| 4a 00 09 25 00 0e 53 00 | 10 24 00 11 6f 00 09 25 |J..%..S.|.$..o..%|
|000040a0| 00 0e 99 00 20 64 00 0e | d6 00 1b 65 00 2f e3 00 |.... d..|...e./..|
|000040b0| 4d 24 00 30 90 00 12 25 | 00 27 a1 00 36 65 00 0f |M$.0...%|.'..6e..|
|000040c0| 7c 00 2d 24 00 10 06 00 | 24 25 00 10 47 00 24 25 ||.-$....|$%..G.$%|
|000040d0| 00 0f fd 00 09 65 00 10 | 7a 00 24 25 00 10 fa 00 |.....e..|z.$%....|
|000040e0| 12 25 00 11 23 00 24 25 | 00 0e eb 00 09 65 00 19 |.%..#.$%|.....e..|
|000040f0| 35 00 d1 24 00 0e f4 00 | 1b 65 00 1d 79 00 96 24 |5..$....|.e..y..$|
|00004100| 00 03 a4 00 1b 65 00 1b | df 00 86 24 00 03 b5 00 |.....e..|...$....|
|00004110| 1b 65 00 13 62 00 66 24 | 00 03 d7 00 1b 65 00 04 |.e..b.f$|.....e..|
|00004120| 65 00 56 24 00 03 e8 00 | 1b 65 00 30 b7 00 74 25 |e.V$....|.e.0..t%|
|00004130| 00 2c b9 00 50 24 00 2e | 45 00 09 25 00 37 72 00 |.,..P$..|E..%.7r.|
|00004140| 49 25 00 38 97 00 24 24 | 00 06 53 00 1b 65 00 32 |I%.8..$$|..S..e.2|
|00004150| f1 00 8b 24 00 11 78 00 | 09 25 00 2e 4e 00 50 24 |...$..x.|.%..N.P$|
|00004160| 00 2f da 00 09 25 00 39 | 45 00 49 25 00 3a 6b 00 |./...%.9|E.I%.:k.|
|00004170| 24 24 00 04 54 00 1b 65 | 00 35 7f 00 74 25 00 3b |$$..T..e|.5..t%.;|
|00004180| 27 00 50 24 00 27 fc 00 | 09 25 00 3c b2 00 49 25 |'.P$.'..|.%.<..I%|
|00004190| 00 3d d6 00 24 24 00 04 | 43 00 1b 65 00 3e 85 00 |.=..$$..|C..e.>..|
|000041a0| 76 24 00 15 fe 00 1b 65 | 00 1f e6 00 96 24 00 03 |v$.....e|.....$..|
|000041b0| f9 00 1b 65 00 22 25 00 | a6 24 00 11 81 00 1b 65 |...e."%.|.$.....e|
|000041c0| 00 16 0f 00 74 64 00 17 | f0 00 09 25 00 25 2b 00 |....td..|...%.%+.|
|000041d0| 94 24 00 04 0a 00 1b 65 | 00 14 69 00 76 24 00 03 |.$.....e|..i.v$..|
|000041e0| c6 00 1b 65 00 29 7a 00 | c8 24 00 28 05 00 1b 65 |...e.)z.|.$.(...e|
|000041f0| 00 28 10 00 76 24 00 04 | 1b 00 1b 65 00 05 49 00 |.(..v$..|...e..I.|
|00004200| 56 24 00 04 26 00 1b 65 | 00 11 92 00 56 04 00 12 |V$..&..e|....V...|
|00004210| 71 00 1b 65 00 12 76 00 | 73 24 00 3f f0 00 1b 00 |q..e..v.|s$.?....|
|00004220| 61 53 6b 74 53 6f 63 6b | 65 74 55 73 65 72 09 2a |aSktSock|etUser.*|
|00004230| 75 73 65 72 3b 0d 63 68 | 61 72 09 2a 68 6f 73 74 |user;.ch|ar.*host|
|00004240| 61 64 64 72 65 73 73 3b | 0d 63 68 61 72 20 09 2a |address;|.char .*|
|00004250| 68 6f 73 74 6e 61 6d 65 | 0d 63 68 61 72 09 2a 6f |hostname|.char.*o|
|00004260| 75 74 70 75 74 51 75 65 | 75 65 3b 0d 6c 6f 6e 67 |utputQue|ue;.long|
|00004270| 20 69 6e 74 09 71 75 65 | 75 65 4c 65 6e 67 74 68 | int.que|ueLength|
|00004280| 3b 0d 03 06 fc 00 6c 02 | 1c 00 6c 00 01 f7 ff 00 |;.....l.|..l.....|
|00004290| 14 0e 01 f7 71 75 65 75 | 65 4f 75 74 70 75 74 ff |....queu|eOutput.|
|000042a0| 00 14 0e 01 f7 3a 6f 66 | 4c 65 6e 67 74 68 3a 0d |.....:of|Length:.|
|000042b0| fc 00 99 02 1c 00 7e 00 | 01 05 10 f7 ff 00 17 0e |......~.|........|
|000042c0| 00 f7 2d 80 ff 00 14 0e | 01 f7 71 75 65 75 65 4f |..-.....|..queueO|
|000042d0| 75 74 70 75 74 3a ff 00 | 14 0e 00 f7 28 63 6f 6e |utput:..|....(con|
|000042e0| 73 74 20 63 68 61 72 20 | 2a 29 ff 00 14 0e 02 f7 |st char |*)......|
|000042f0| 6f 75 74 70 75 74 ff 00 | 14 0e 00 f7 20 ff 00 14 |output..|.... ...|
|00004300| 0e 01 f7 6f 66 4c 65 6e | 67 74 68 3a ff 00 14 0e |...ofLen|gth:....|
|00004310| 00 f7 28 6c 6f 6e 67 20 | 69 6e 74 29 ff 00 14 0e |..(long |int)....|
|00004320| 02 f7 6c 65 6e 67 74 68 | 0d ff 00 14 08 02 f7 fc |..length|........|
|00004330| 00 7e 02 1c 00 7e 00 01 | 05 10 f7 0d ff 00 14 0e |.~...~..|........|
|00004340| 00 f7 54 68 69 73 20 6d | 65 74 68 6f 64 2c 20 75 |..This m|ethod, u|
|00004350| 73 75 61 6c 6c 79 20 69 | 6e 76 6f 6b 65 64 20 62 |sually i|nvoked b|
|00004360| 79 20 74 68 65 20 53 6b | 74 53 6f 63 6b 65 74 55 |y the Sk|tSocketU|
|00004370| 73 65 72 2c 20 61 64 64 | 73 20 ff 00 14 0e 02 f7 |ser, add|s ......|
|00004380| 6c 65 6e 67 74 68 ff 00 | 14 0e 00 f7 20 62 79 74 |length..|.... byt|
|00004390| 65 73 20 6f 66 20 ff 00 | 14 0e 02 f7 6f 75 74 70 |es of ..|....outp|
|000043a0| 75 74 ff 00 14 0e 00 f7 | 20 74 6f 20 74 68 65 20 |ut......| to the |
|000043b0| 65 6e 64 20 6f 66 20 74 | 68 65 20 6f 75 74 70 75 |end of t|he outpu|
|000043c0| 74 20 71 75 65 75 65 2c | 20 61 6e 64 20 75 70 64 |t queue,| and upd|
|000043d0| 61 74 65 73 20 74 68 65 | 20 71 75 65 75 65 20 6c |ates the| queue l|
|000043e0| 65 6e 67 74 68 2e 20 20 | 52 65 74 75 72 6e 73 20 |ength. |Returns |
|000043f0| ff 00 14 0e 01 f7 73 65 | 6c 66 ff 00 14 0e 00 f7 |......se|lf......|
|00004400| 2c 20 6f 72 20 ff 00 14 | 0e 01 f7 6e 69 6c ff 00 |, or ...|...nil..|
|00004410| 14 0e 00 f7 20 69 66 20 | 61 20 6d 65 6d 6f 72 79 |.... if |a memory|
|00004420| 20 72 65 61 6c 6c 6f 63 | 61 74 69 6f 6e 20 66 61 | realloc|ation fa|
|00004430| 69 6c 73 ff 00 14 0e 00 | f7 2e 20 20 49 66 20 74 |ils.....|.. If t|
|00004440| 68 65 20 72 65 74 75 72 | 6e 20 76 61 6c 75 65 20 |he retur|n value |
|00004450| 69 73 20 ff 00 14 0e 01 | f7 6e 69 6c ff 00 14 0e |is .....|.nil....|
|00004460| 00 f7 2c 20 74 68 65 20 | 53 6b 74 53 6f 63 6b 65 |.., the |SktSocke|
|00004470| 74 20 68 61 73 20 62 65 | 63 6f 6d 65 20 63 6f 72 |t has be|come cor|
|00004480| 72 75 70 74 2c 20 61 6e | 64 20 77 69 6c 6c 20 63 |rupt, an|d will c|
|00004490| 72 61 73 68 20 74 68 65 | 20 70 72 6f 63 65 73 73 |rash the| process|
|000044a0| 20 74 68 65 20 6e 65 78 | 74 20 74 69 6d 65 20 69 | the nex|t time i|
|000044b0| 74 20 61 74 74 65 6d 70 | 74 73 20 74 6f 20 61 6c |t attemp|ts to al|
|000044c0| 74 65 72 20 69 74 73 20 | 6f 75 74 70 75 74 20 71 |ter its |output q|
|000044d0| 75 65 75 65 2e 20 20 59 | 6f 75 20 73 68 6f 75 6c |ueue. Y|ou shoul|
|000044e0| 64 20 65 69 74 68 65 72 | 20 66 72 65 65 20 74 68 |d either| free th|
|000044f0| 65 20 53 6b 74 53 6f 63 | 6b 65 74 20 6f 72 20 74 |e SktSoc|ket or t|
|00004500| 65 72 6d 69 6e 61 74 65 | 20 74 68 65 20 70 72 6f |erminate| the pro|
|00004510| 63 65 73 73 20 69 66 20 | 74 68 65 20 72 65 74 75 |cess if |the retu|
|00004520| 72 6e 20 69 73 20 ff 00 | 14 0e 01 f7 6e 69 6c ff |rn is ..|....nil.|
|00004530| 00 14 0e 00 f7 2e 2e 0d | ff 00 14 08 00 f7 0d ff |........|........|
|00004540| 00 14 0e 00 f7 53 65 65 | 20 61 6c 73 6f 3a 20 ff |.....See| also: .|
|00004550| 00 17 0e 00 f7 2d 80 ff | 00 14 0e 01 f7 66 6c 75 |.....-..|.....flu|
|00004560| 73 68 4f 75 74 70 75 74 | ff 00 14 0e 00 f7 2c 20 |shOutput|......, |
|00004570| ff 00 17 0e 00 f7 2d 80 | ff 00 14 0e 01 f7 70 75 |......-.|......pu|
|00004580| 72 67 65 4f 75 74 70 75 | 74 0d 02 22 64 00 02 90 |rgeOutpu|t.."d...|
|00004590| 00 15 c7 00 06 e0 00 00 | 87 00 07 48 00 4e 65 00 |........|...H.Ne.|
|000045a0| 0a 13 00 a9 24 00 18 66 | 00 42 25 00 07 c8 00 99 |....$..f|.B%.....|
|000045b0| 64 00 03 20 00 1b 65 00 | 03 47 00 29 24 00 0f 05 |d.. ..e.|.G.)$...|
|000045c0| 00 09 65 00 0f 0e 00 20 | 04 00 42 1f 00 50 05 00 |..e.... |..B..P..|
|000045d0| 11 5f 00 10 64 00 0f 67 | 00 09 25 00 0c 82 00 10 |._..d..g|..%.....|
|000045e0| 24 00 0c c3 00 09 25 00 | 0c cc 00 10 24 00 0d 06 |$.....%.|....$...|
|000045f0| 00 09 25 00 0d 0f 00 10 | 24 00 0d 43 00 09 25 00 |..%.....|$..C..%.|
|00004600| 0d 4c 00 20 24 00 0d af | 00 09 25 00 0d b8 00 20 |.L. $...|..%.... |
|00004610| 24 00 0d fa 00 09 25 00 | 0e 03 00 20 24 00 0e 4a |$.....%.|... $..J|
|00004620| 00 09 25 00 0e 53 00 10 | 24 00 11 6f 00 09 25 00 |..%..S..|$..o..%.|
|00004630| 0e 99 00 20 64 00 0e d6 | 00 1b 65 00 2f e3 00 4d |... d...|..e./..M|
|00004640| 24 00 30 90 00 12 25 00 | 27 a1 00 36 65 00 0f 7c |$.0...%.|'..6e..||
|00004650| 00 2d 24 00 10 06 00 24 | 25 00 10 47 00 24 25 00 |.-$....$|%..G.$%.|
|00004660| 0f fd 00 09 65 00 10 7a | 00 24 25 00 10 fa 00 12 |....e..z|.$%.....|
|00004670| 25 00 11 23 00 24 25 00 | 0e eb 00 09 65 00 19 35 |%..#.$%.|....e..5|
|00004680| 00 d1 24 00 0e f4 00 1b | 65 00 1d 79 00 96 24 00 |..$.....|e..y..$.|
|00004690| 03 a4 00 1b 65 00 1b df | 00 86 24 00 03 b5 00 1b |....e...|..$.....|
|000046a0| 65 00 13 62 00 66 24 00 | 03 d7 00 1b 65 00 04 65 |e..b.f$.|....e..e|
|000046b0| 00 56 24 00 03 e8 00 1b | 65 00 30 b7 00 74 25 00 |.V$.....|e.0..t%.|
|000046c0| 2c b9 00 50 24 00 2e 45 | 00 09 25 00 37 72 00 49 |,..P$..E|..%.7r.I|
|000046d0| 25 00 38 97 00 24 24 00 | 06 53 00 1b 65 00 32 f1 |%.8..$$.|.S..e.2.|
|000046e0| 00 8b 24 00 11 78 00 09 | 25 00 2e 4e 00 50 24 00 |..$..x..|%..N.P$.|
|000046f0| 2f da 00 09 25 00 39 45 | 00 49 25 00 3a 6b 00 24 |/...%.9E|.I%.:k.$|
|00004700| 24 00 04 54 00 1b 65 00 | 35 7f 00 74 25 00 3b 27 |$..T..e.|5..t%.;'|
|00004710| 00 50 24 00 27 fc 00 09 | 25 00 3c b2 00 49 25 00 |.P$.'...|%.<..I%.|
|00004720| 3d d6 00 24 24 00 04 43 | 00 1b 65 00 3e 85 00 76 |=..$$..C|..e.>..v|
|00004730| 24 00 15 fe 00 1b 65 00 | 1f e6 00 96 24 00 03 f9 |$.....e.|....$...|
|00004740| 00 1b 65 00 42 82 00 a6 | 24 00 11 81 00 1b 65 00 |..e.B...|$.....e.|
|00004750| 16 0f 00 74 64 00 17 f0 | 00 09 25 00 25 2b 00 94 |...td...|..%.%+..|
|00004760| 24 00 04 0a 00 1b 65 00 | 14 69 00 76 24 00 03 c6 |$.....e.|.i.v$...|
|00004770| 00 1b 65 00 29 7a 00 c8 | 24 00 28 05 00 1b 65 00 |..e.)z..|$.(...e.|
|00004780| 28 10 00 76 24 00 04 1b | 00 1b 65 00 05 49 00 56 |(..v$...|..e..I.V|
|00004790| 24 00 04 26 00 1b 65 00 | 11 92 00 56 04 00 12 71 |$..&..e.|...V...q|
|000047a0| 00 1b 65 00 12 76 00 73 | 24 00 3f f0 00 1b 02 4a |..e..v.s|$.?....J|
|000047b0| fc 00 6c 02 1c 00 6c 00 | 01 f7 ff 00 14 0e 01 f7 |..l...l.|........|
|000047c0| ff 00 14 0e 01 f7 66 6c | 75 73 68 4f 75 74 70 75 |......fl|ushOutpu|
|000047d0| 74 ff 00 14 0e 01 f7 0d | fc 00 99 02 1c 00 7e 00 |t.......|......~.|
|000047e0| 01 05 10 f7 ff 00 17 0e | 00 f7 2d 80 ff 00 14 0e |........|..-.....|
|000047f0| 01 f7 66 6c 75 73 68 4f | 75 74 70 75 74 ff 00 14 |..flushO|utput...|
|00004800| 0e 02 f7 0d ff 00 14 08 | 02 f7 fc 00 7e 02 1c 00 |........|....~...|
|00004810| 7e 00 01 05 10 f7 0d ff | 00 14 0e 00 f7 57 72 69 |~.......|.....Wri|
|00004820| 74 65 73 20 61 6c 6c 20 | 64 61 74 61 20 69 6e 20 |tes all |data in |
|00004830| 74 68 65 20 6f 75 74 70 | 75 74 20 71 75 65 75 65 |the outp|ut queue|
|00004840| 20 74 6f 20 74 68 65 20 | 73 6f 63 6b 65 74 2c 20 | to the |socket, |
|00004850| 74 68 65 72 65 62 79 20 | 65 6d 70 74 79 69 6e 67 |thereby |emptying|
|00004860| 20 74 68 65 20 71 75 65 | 75 65 2e 20 20 52 65 74 | the que|ue. Ret|
|00004870| 75 72 6e 73 20 ff 00 14 | 0e 01 f7 73 65 6c 66 ff |urns ...|...self.|
|00004880| 00 14 0e 00 f7 2c 20 6f | 72 20 ff 00 14 0e 01 f7 |....., o|r ......|
|00004890| 6e 69 6c ff 00 14 0e 00 | f7 20 69 66 20 61 20 6d |nil.....|. if a m|
|000048a0| 65 6d 6f 72 79 20 72 65 | 61 6c 6c 6f 63 61 74 69 |emory re|allocati|
|000048b0| 6f 6e 20 66 61 69 6c 73 | ff 00 14 0e 00 f7 2e 20 |on fails|....... |
|000048c0| 20 49 66 20 74 68 65 20 | 72 65 74 75 72 6e 20 76 | If the |return v|
|000048d0| 61 6c 75 65 20 69 73 20 | ff 00 14 0e 01 f7 6e 69 |alue is |......ni|
|000048e0| 6c ff 00 14 0e 00 f7 2c | 20 74 68 65 20 53 6b 74 |l......,| the Skt|
|000048f0| 53 6f 63 6b 65 74 20 68 | 61 73 20 62 65 63 6f 6d |Socket h|as becom|
|00004900| 65 20 63 6f 72 72 75 70 | 74 2c 20 61 6e 64 20 77 |e corrup|t, and w|
|00004910| 69 6c 6c 20 63 72 61 73 | 68 20 74 68 65 20 70 72 |ill cras|h the pr|
|00004920| 6f 63 65 73 73 20 74 68 | 65 20 6e 65 78 74 20 74 |ocess th|e next t|
|00004930| 69 6d 65 20 69 74 20 61 | 74 74 65 6d 70 74 73 20 |ime it a|ttempts |
|00004940| 74 6f 20 61 6c 74 65 72 | 20 69 74 73 20 6f 75 74 |to alter| its out|
|00004950| 70 75 74 20 71 75 65 75 | 65 2e 20 20 59 6f 75 20 |put queu|e. You |
|00004960| 73 68 6f 75 6c 64 20 65 | 69 74 68 65 72 20 66 72 |should e|ither fr|
|00004970| 65 65 20 74 68 65 20 53 | 6b 74 53 6f 63 6b 65 74 |ee the S|ktSocket|
|00004980| 20 6f 72 20 74 65 72 6d | 69 6e 61 74 65 20 74 68 | or term|inate th|
|00004990| 65 20 70 72 6f 63 65 73 | 73 2e ff 00 14 0e 00 f7 |e proces|s.......|
|000049a0| 0d ff 00 14 08 00 f7 0d | ff 00 14 0e 00 f7 53 65 |........|......Se|
|000049b0| 65 20 61 6c 73 6f 3a 20 | ff 00 17 0e 00 f7 2d 80 |e also: |......-.|
|000049c0| ff 00 14 0e 01 f7 71 75 | 65 75 65 4f 75 74 70 75 |......qu|eueOutpu|
|000049d0| 74 ff 00 14 0e 01 f7 3a | ff 00 14 0e 00 f7 2c 20 |t......:|......, |
|000049e0| ff 00 17 0e 00 f7 2d 80 | ff 00 14 0e 01 f7 70 75 |......-.|......pu|
|000049f0| 72 67 65 4f 75 74 70 75 | 74 0d 02 1c fc 00 6c 02 |rgeOutpu|t.....l.|
|00004a00| 1c 00 6c 00 01 f7 ff 00 | 14 0e 01 f7 70 75 72 67 |..l.....|....purg|
|00004a10| 65 4f 75 74 70 75 74 ff | 00 14 0e 01 f7 0d fc 00 |eOutput.|........|
|00004a20| 99 02 1c 00 7e 00 01 05 | 10 f7 ff 00 17 0e 00 f7 |....~...|........|
|00004a30| 2d 80 ff 00 14 0e 01 f7 | 70 75 72 67 65 4f 75 74 |-.......|purgeOut|
|00004a40| 70 75 74 ff 00 14 0e 02 | f7 0d ff 00 14 08 02 f7 |put.....|........|
|00004a50| fc 00 7e 02 1c 00 7e 00 | 01 05 10 f7 0d ff 00 14 |..~...~.|........|
|00004a60| 0e 00 f7 45 6d 70 74 69 | 65 73 20 74 68 65 20 6f |...Empti|es the o|
|00004a70| 75 74 70 75 74 20 71 75 | 65 75 65 20 77 69 74 68 |utput qu|eue with|
|00004a80| 6f 75 74 20 77 72 69 74 | 69 6e 67 20 69 74 20 74 |out writ|ing it t|
|00004a90| 6f 20 74 68 65 20 73 6f | 63 6b 65 74 2e 20 20 52 |o the so|cket. R|
|00004aa0| 65 74 75 72 6e 73 20 ff | 00 14 0e 01 f7 73 65 6c |eturns .|.....sel|
|00004ab0| 66 ff 00 14 0e 00 f7 2c | 20 6f 72 20 ff 00 14 0e |f......,| or ....|
|00004ac0| 01 f7 6e 69 6c ff 00 14 | 0e 00 f7 20 69 66 20 61 |..nil...|... if a|
|00004ad0| 20 6d 65 6d 6f 72 79 20 | 72 65 61 6c 6c 6f 63 61 | memory |realloca|
|00004ae0| 74 69 6f 6e 20 66 61 69 | 6c 73 ff 00 14 0e 00 f7 |tion fai|ls......|
|00004af0| 2e 20 20 49 66 20 74 68 | 65 20 72 65 74 75 72 6e |. If th|e return|
|00004b00| 20 76 61 6c 75 65 20 69 | 73 20 ff 00 14 0e 01 f7 | value i|s ......|
|00004b10| 6e 69 6c ff 00 14 0e 00 | f7 2c 20 74 68 65 20 53 |nil.....|., the S|
|00004b20| 6b 74 53 6f 63 6b 65 74 | 20 68 61 73 20 62 65 63 |ktSocket| has bec|
|00004b30| 6f 6d 65 20 63 6f 72 72 | 75 70 74 2c 20 61 6e 64 |ome corr|upt, and|
|00004b40| 20 77 69 6c 6c 20 63 72 | 61 73 68 20 74 68 65 20 | will cr|ash the |
|00004b50| 70 72 6f 63 65 73 73 20 | 74 68 65 20 6e 65 78 74 |process |the next|
|00004b60| 20 74 69 6d 65 20 69 74 | 20 61 74 74 65 6d 70 74 | time it| attempt|
|00004b70| 73 20 74 6f 20 61 6c 74 | 65 72 20 69 74 73 20 6f |s to alt|er its o|
|00004b80| 75 74 70 75 74 20 71 75 | 65 75 65 2e 20 20 59 6f |utput qu|eue. Yo|
|00004b90| 75 20 73 68 6f 75 6c 64 | 20 65 69 74 68 65 72 20 |u should| either |
|00004ba0| 66 72 65 65 20 74 68 65 | 20 53 6b 74 53 6f 63 6b |free the| SktSock|
|00004bb0| 65 74 20 6f 72 20 74 65 | 72 6d 69 6e 61 74 65 20 |et or te|rminate |
|00004bc0| 74 68 65 20 70 72 6f 63 | 65 73 73 2e 0d ff 00 14 |the proc|ess.....|
|00004bd0| 08 00 f7 0d ff 00 14 0e | 00 f7 53 65 65 20 61 6c |........|..See al|
|00004be0| 73 6f 3a 20 ff 00 17 0e | 00 f7 2d 80 ff 00 14 0e |so: ....|..-.....|
|00004bf0| 01 f7 66 6c 75 73 68 4f | 75 74 70 75 74 ff 00 14 |..flushO|utput...|
|00004c00| 0e 00 f7 2c 20 ff 00 17 | 0e 00 f7 2d 80 ff 00 14 |..., ...|...-....|
|00004c10| 0e 01 f7 66 72 65 65 0d | 02 e4 fc 00 6c 02 1c 00 |...free.|....l...|
|00004c20| 6c 00 01 f7 ff 00 14 0e | 01 f7 71 75 65 75 65 4f |l.......|..queueO|
|00004c30| 75 74 70 75 74 ff 00 14 | 0e 01 f7 3a 6f 66 4c 65 |utput...|...:ofLe|
|00004c40| 6e 67 74 68 3a 0d fc 00 | 99 02 1c 00 7e 00 01 05 |ngth:...|....~...|
|00004c50| 10 f7 ff 00 17 0e 00 f7 | 2d 80 ff 00 14 0e 01 f7 |........|-.......|
|00004c60| 71 75 65 75 65 4f 75 74 | 70 75 74 3a ff 00 14 0e |queueOut|put:....|
|00004c70| 00 f7 28 63 6f 6e 73 74 | 20 63 68 61 72 20 2a 29 |..(const| char *)|
|00004c80| ff 00 14 0e 02 f7 6f 75 | 74 70 75 74 ff 00 14 0e |......ou|tput....|
|00004c90| 00 f7 20 ff 00 14 0e 01 | f7 6f 66 4c 65 6e 67 74 |.. .....|.ofLengt|
|00004ca0| 68 3a ff 00 14 0e 00 f7 | 28 6c 6f 6e 67 20 69 6e |h:......|(long in|
|00004cb0| 74 29 ff 00 14 0e 02 f7 | 6c 65 6e 67 74 68 0d ff |t)......|length..|
|00004cc0| 00 14 08 02 f7 fc 00 7e | 02 1c 00 7e 00 01 05 10 |.......~|...~....|
|00004cd0| f7 0d ff 00 14 0e 00 f7 | 54 68 69 73 20 6d 65 74 |........|This met|
|00004ce0| 68 6f 64 2c 20 75 73 75 | 61 6c 6c 79 20 69 6e 76 |hod, usu|ally inv|
|00004cf0| 6f 6b 65 64 20 62 79 20 | 74 68 65 20 53 6b 74 53 |oked by |the SktS|
|00004d00| 6f 63 6b 65 74 55 73 65 | 72 2c 20 61 64 64 73 20 |ocketUse|r, adds |
|00004d10| ff 00 14 0e 02 f7 6c 65 | 6e 67 74 68 ff 00 14 0e |......le|ngth....|
|00004d20| 00 f7 20 62 79 74 65 73 | 20 6f 66 20 ff 00 14 0e |.. bytes| of ....|
|00004d30| 02 f7 6f 75 74 70 75 74 | ff 00 14 0e 00 f7 20 74 |..output|...... t|
|00004d40| 6f 20 74 68 65 20 65 6e | 64 20 6f 66 20 74 68 65 |o the en|d of the|
|00004d50| 20 6f 75 74 70 75 74 20 | 71 75 65 75 65 2c 20 61 | output |queue, a|
|00004d60| 6e 64 20 75 70 64 61 74 | 65 73 20 74 68 65 20 71 |nd updat|es the q|
|00004d70| 75 65 75 65 20 6c 65 6e | 67 74 68 2e 20 20 52 65 |ueue len|gth. Re|
|00004d80| 74 75 72 6e 73 20 ff 00 | 14 0e 01 f7 73 65 6c 66 |turns ..|....self|
|00004d90| ff 00 14 0e 00 f7 2c 20 | 6f 72 20 ff 00 14 0e 01 |......, |or .....|
|00004da0| f7 6e 69 6c ff 00 14 0e | 00 f7 20 69 66 20 61 20 |.nil....|.. if a |
|00004db0| 6d 65 6d 6f 72 79 20 72 | 65 61 6c 6c 6f 63 61 74 |memory r|eallocat|
|00004dc0| 69 6f 6e 20 66 61 69 6c | 73 ff 00 14 0e 00 f7 2e |ion fail|s.......|
|00004dd0| 20 20 49 66 20 74 68 65 | 20 72 65 74 75 72 6e 20 | If the| return |
|00004de0| 76 61 6c 75 65 20 69 73 | 20 ff 00 14 0e 01 f7 6e |value is| ......n|
|00004df0| 69 6c ff 00 14 0e 00 f7 | 2c 20 74 68 65 20 53 6b |il......|, the Sk|
|00004e00| 74 53 6f 63 6b 65 74 20 | 68 61 73 20 62 65 63 6f |tSocket |has beco|
|00004e10| 6d 65 20 63 6f 72 72 75 | 70 74 2c 20 61 6e 64 20 |me corru|pt, and |
|00004e20| 77 69 6c 6c 20 63 72 61 | 73 68 20 74 68 65 20 70 |will cra|sh the p|
|00004e30| 72 6f 63 65 73 73 20 74 | 68 65 20 6e 65 78 74 20 |rocess t|he next |
|00004e40| 74 69 6d 65 20 69 74 20 | 61 74 74 65 6d 70 74 73 |time it |attempts|
|00004e50| 20 74 6f 20 61 6c 74 65 | 72 20 69 74 73 20 6f 75 | to alte|r its ou|
|00004e60| 74 70 75 74 20 71 75 65 | 75 65 2e 20 20 59 6f 75 |tput que|ue. You|
|00004e70| 20 73 68 6f 75 6c 64 20 | 65 69 74 68 65 72 20 66 | should |either f|
|00004e80| 72 65 65 20 74 68 65 20 | 53 6b 74 53 6f 63 6b 65 |ree the |SktSocke|
|00004e90| 74 20 6f 72 20 74 65 72 | 6d 69 6e 61 74 65 20 74 |t or ter|minate t|
|00004ea0| 68 65 20 70 72 6f 63 65 | 73 73 2e 0d ff 00 14 08 |he proce|ss......|
|00004eb0| 00 f7 0d ff 00 14 0e 00 | f7 53 65 65 20 61 6c 73 |........|.See als|
|00004ec0| 6f 3a 20 ff 00 17 0e 00 | f7 2d 80 ff 00 14 0e 01 |o: .....|.-......|
|00004ed0| f7 66 6c 75 73 68 4f 75 | 74 70 75 74 ff 00 14 0e |.flushOu|tput....|
|00004ee0| 00 f7 2c 20 ff 00 17 0e | 00 f7 2d 80 ff 00 14 0e |.., ....|..-.....|
|00004ef0| 01 f7 70 75 72 67 65 4f | 75 74 70 75 74 0d 02 52 |..purgeO|utput..R|
|00004f00| ff 00 14 0e 00 f7 49 74 | 20 69 73 20 74 68 65 72 |......It| is ther|
|00004f10| 65 66 6f 72 65 20 6e 6f | 74 20 75 73 65 66 75 6c |efore no|t useful|
|00004f20| 20 66 6f 72 20 68 61 76 | 69 6e 67 20 74 68 65 20 | for hav|ing the |
|00004f30| 6e 75 6c 6c 20 63 68 61 | 72 61 63 74 65 72 20 61 |null cha|racter a|
|00004f40| 74 20 74 68 65 20 65 6e | 64 20 6f 66 20 74 68 65 |t the en|d of the|
|00004f50| 20 73 74 72 69 6e 67 20 | 71 75 65 75 65 64 2e 20 | string |queued. |
|00004f60| 20 54 6f 20 64 6f 20 74 | 68 61 74 2c 20 61 64 64 | To do t|hat, add|
|00004f70| 20 31 20 74 6f 20 ff 00 | 14 0e 02 f7 61 53 74 72 | 1 to ..|....aStr|
|00004f80| 69 6e 67 ff 00 14 0e 00 | f7 27 73 ff 00 14 0e 00 |ing.....|.'s.....|
|00004f90| f7 20 6c 65 6e 67 74 68 | 20 61 6e 64 20 73 65 6e |. length| and sen|
|00004fa0| 64 20 ff 00 14 0e 01 f7 | 71 75 65 75 65 4f 75 74 |d ......|queueOut|
|00004fb0| 70 75 74 3a 6f 66 4c 65 | 6e 67 74 68 3a ff 00 14 |put:ofLe|ngth:...|
|00004fc0| 0e 00 f7 2e 0d ff 00 14 | 08 00 f7 0d ff 00 14 0e |........|........|
|00004fd0| 00 f7 52 65 74 75 72 6e | 73 20 ff 00 14 0e 01 f7 |..Return|s ......|
|00004fe0| 73 65 6c 66 ff 00 14 0e | 00 f7 2c 20 6f 72 20 ff |self....|.., or .|
|00004ff0| 00 14 0e 01 f7 6e 69 6c | ff 00 14 0e 00 f7 20 69 |.....nil|...... i|
|00005000| 66 20 61 20 6d 65 6d 6f | 72 79 20 72 65 61 6c 6c |f a memo|ry reall|
|00005010| 6f 63 61 74 69 6f 6e 20 | 66 61 69 6c 73 ff 00 14 |ocation |fails...|
|00005020| 0e 00 f7 2e 20 20 49 66 | 20 74 68 65 20 72 65 74 |.... If| the ret|
|00005030| 75 72 6e 20 76 61 6c 75 | 65 20 69 73 20 ff 00 14 |urn valu|e is ...|
|00005040| 0e 01 f7 6e 69 6c ff 00 | 14 0e 00 f7 2c 20 74 68 |...nil..|...., th|
|00005050| 65 20 53 6b 74 53 6f 63 | 6b 65 74 20 68 61 73 20 |e SktSoc|ket has |
|00005060| 62 65 63 6f 6d 65 20 63 | 6f 72 72 75 70 74 2c 20 |become c|orrupt, |
|00005070| 61 6e 64 20 77 69 6c 6c | 20 63 72 61 73 68 20 74 |and will| crash t|
|00005080| 68 65 20 70 72 6f 63 65 | 73 73 20 74 68 65 20 6e |he proce|ss the n|
|00005090| 65 78 74 20 74 69 6d 65 | 20 69 74 20 61 74 74 65 |ext time| it atte|
|000050a0| 6d 70 74 73 20 74 6f 20 | 61 6c 74 65 72 20 69 74 |mpts to |alter it|
|000050b0| 73 20 6f 75 74 70 75 74 | 20 71 75 65 75 65 2e 20 |s output| queue. |
|000050c0| 20 59 6f 75 20 73 68 6f | 75 6c 64 20 65 69 74 68 | You sho|uld eith|
|000050d0| 65 72 20 66 72 65 65 20 | 74 68 65 20 53 6b 74 53 |er free |the SktS|
|000050e0| 6f 63 6b 65 74 20 6f 72 | 20 74 65 72 6d 69 6e 61 |ocket or| termina|
|000050f0| 74 65 20 74 68 65 20 70 | 72 6f 63 65 73 73 2e 0d |te the p|rocess..|
|00005100| ff 00 14 08 00 f7 0d ff | 00 14 0e 00 f7 53 65 65 |........|.....See|
|00005110| 20 61 6c 73 6f 3a 20 ff | 00 17 0e 00 f7 2d 80 ff | also: .|.....-..|
|00005120| 00 14 0e 01 f7 66 6c 75 | 73 68 4f 75 74 70 75 74 |.....flu|shOutput|
|00005130| ff 00 14 0e 00 f7 2c 20 | ff 00 17 0e 00 f7 2d 80 |......, |......-.|
|00005140| ff 00 14 0e 01 f7 70 75 | 72 67 65 4f 75 74 70 75 |......pu|rgeOutpu|
|00005150| 74 0d 02 22 64 00 02 90 | 00 15 c7 00 06 e0 00 00 |t.."d...|........|
|00005160| 87 00 07 48 00 4e 65 00 | 0a 13 00 a9 24 00 18 66 |...H.Ne.|....$..f|
|00005170| 00 42 25 00 07 c8 00 99 | 64 00 03 20 00 1b 65 00 |.B%.....|d.. ..e.|
|00005180| 03 47 00 29 24 00 0f 05 | 00 09 65 00 0f 0e 00 20 |.G.)$...|..e.... |
|00005190| 04 00 42 1f 00 50 05 00 | 11 5f 00 10 64 00 0f 67 |..B..P..|._..d..g|
|000051a0| 00 09 25 00 0c 82 00 10 | 24 00 0c c3 00 09 25 00 |..%.....|$.....%.|
|000051b0| 0c cc 00 10 24 00 0d 06 | 00 09 25 00 0d 0f 00 10 |....$...|..%.....|
|000051c0| 24 00 0d 43 00 09 25 00 | 0d 4c 00 20 24 00 0d af |$..C..%.|.L. $...|
|000051d0| 00 09 25 00 0d b8 00 20 | 24 00 0d fa 00 09 25 00 |..%.... |$.....%.|
|000051e0| 0e 03 00 20 24 00 0e 4a | 00 09 25 00 0e 53 00 10 |... $..J|..%..S..|
|000051f0| 24 00 11 6f 00 09 25 00 | 0e 99 00 20 64 00 0e d6 |$..o..%.|... d...|
|00005200| 00 1b 65 00 2f e3 00 4d | 24 00 30 90 00 12 25 00 |..e./..M|$.0...%.|
|00005210| 27 a1 00 36 65 00 0f 7c | 00 2d 24 00 10 06 00 24 |'..6e..||.-$....$|
|00005220| 25 00 10 47 00 24 25 00 | 0f fd 00 09 65 00 10 7a |%..G.$%.|....e..z|
|00005230| 00 24 25 00 10 fa 00 12 | 25 00 11 23 00 24 25 00 |.$%.....|%..#.$%.|
|00005240| 0e eb 00 09 65 00 19 35 | 00 d1 24 00 0e f4 00 1b |....e..5|..$.....|
|00005250| 65 00 47 ae 00 96 24 00 | 03 a4 00 1b 65 00 1b df |e.G...$.|....e...|
|00005260| 00 86 24 00 03 b5 00 1b | 65 00 13 62 00 66 24 00 |..$.....|e..b.f$.|
|00005270| 03 d7 00 1b 65 00 04 65 | 00 56 24 00 03 e8 00 1b |....e..e|.V$.....|
|00005280| 65 00 30 b7 00 74 25 00 | 2c b9 00 50 24 00 2e 45 |e.0..t%.|,..P$..E|
|00005290| 00 09 25 00 37 72 00 49 | 25 00 38 97 00 24 24 00 |..%.7r.I|%.8..$$.|
|000052a0| 06 53 00 1b 65 00 32 f1 | 00 8b 24 00 11 78 00 09 |.S..e.2.|..$..x..|
|000052b0| 25 00 2e 4e 00 50 24 00 | 2f da 00 09 25 00 39 45 |%..N.P$.|/...%.9E|
|000052c0| 00 49 25 00 3a 6b 00 24 | 24 00 04 54 00 1b 65 00 |.I%.:k.$|$..T..e.|
|000052d0| 35 7f 00 74 25 00 3b 27 | 00 50 24 00 27 fc 00 09 |5..t%.;'|.P$.'...|
|000052e0| 25 00 3c b2 00 49 25 00 | 3d d6 00 24 24 00 04 43 |%.<..I%.|=..$$..C|
|000052f0| 00 1b 65 00 3e 85 00 76 | 24 00 15 fe 00 1b 65 00 |..e.>..v|$.....e.|
|00005300| 49 fa 00 96 24 00 03 f9 | 00 1b 65 00 4c 18 00 a6 |I...$...|..e.L...|
|00005310| 24 00 11 81 00 1b 65 00 | 16 0f 00 74 64 00 17 f0 |$.....e.|...td...|
|00005320| 00 09 25 00 4e fe 00 94 | 24 00 04 0a 00 1b 65 00 |..%.N...|$.....e.|
|00005330| 14 69 00 76 24 00 03 c6 | 00 1b 65 00 29 7a 00 c8 |.i.v$...|..e.)z..|
|00005340| 24 00 28 05 00 1b 65 00 | 28 10 00 76 24 00 04 1b |$.(...e.|(..v$...|
|00005350| 00 1b 65 00 05 49 00 56 | 24 00 04 26 00 1b 65 00 |..e..I.V|$..&..e.|
|00005360| 11 92 00 56 04 00 12 71 | 00 1b 65 00 12 76 00 73 |...V...q|..e..v.s|
|00005370| 24 00 3f f0 00 1b 00 00 | 00 78 00 03 00 00 00 48 |$.?.....|.x.....H|
|00005380| 00 48 00 00 00 00 03 18 | 02 64 00 00 00 00 03 18 |.H......|.d......|
|00005390| 02 64 01 5b 05 28 03 fc | 00 02 00 00 00 48 00 48 |.d.[.(..|.....H.H|
|000053a0| 00 00 00 00 03 18 02 64 | 00 01 00 00 00 64 00 00 |.......d|.....d..|
|000053b0| 00 01 00 01 01 01 00 00 | 00 01 27 0f 00 01 00 01 |........|..'.....|
|000053c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 02 00 19 |........|........|
|000053d0| 01 90 00 00 00 00 00 40 | 00 00 00 00 00 00 00 00 |.......@|........|
|000053e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053f0| 00 00 02 22 64 00 02 90 | 00 15 c7 00 06 e0 00 00 |..."d...|........|
|00005400| 87 00 07 48 00 4e 65 00 | 0a 13 00 a9 24 00 18 66 |...H.Ne.|....$..f|
|00005410| 00 42 25 00 07 c8 00 99 | 64 00 03 20 00 1b 65 00 |.B%.....|d.. ..e.|
|00005420| 03 47 00 29 24 00 0f 05 | 00 09 65 00 0f 0e 00 20 |.G.)$...|..e.... |
|00005430| 04 00 42 1f 00 50 05 00 | 11 5f 00 10 64 00 0f 67 |..B..P..|._..d..g|
|00005440| 00 09 25 00 0c 82 00 10 | 24 00 0c c3 00 09 25 00 |..%.....|$.....%.|
|00005450| 0c cc 00 10 24 00 0d 06 | 00 09 25 00 0d 0f 00 10 |....$...|..%.....|
|00005460| 24 00 0d 43 00 09 25 00 | 0d 4c 00 20 24 00 0d af |$..C..%.|.L. $...|
|00005470| 00 09 25 00 0d b8 00 20 | 24 00 0d fa 00 09 25 00 |..%.... |$.....%.|
|00005480| 0e 03 00 20 24 00 0e 4a | 00 09 25 00 0e 53 00 10 |... $..J|..%..S..|
|00005490| 24 00 11 6f 00 09 25 00 | 0e 99 00 20 64 00 0e d6 |$..o..%.|... d...|
|000054a0| 00 1b 65 00 2f e3 00 4d | 24 00 30 90 00 12 25 00 |..e./..M|$.0...%.|
|000054b0| 27 a1 00 36 65 00 0f 7c | 00 2d 24 00 10 06 00 24 |'..6e..||.-$....$|
|000054c0| 25 00 10 47 00 24 25 00 | 0f fd 00 09 65 00 10 7a |%..G.$%.|....e..z|
|000054d0| 00 24 25 00 10 fa 00 12 | 25 00 11 23 00 24 25 00 |.$%.....|%..#.$%.|
|000054e0| 0e eb 00 09 65 00 19 35 | 00 d1 24 00 0e f4 00 1b |....e..5|..$.....|
|000054f0| 65 00 47 ae 00 96 24 00 | 03 a4 00 1b 65 00 1b df |e.G...$.|....e...|
|00005500| 00 86 24 00 03 b5 00 1b | 65 00 13 62 00 66 24 00 |..$.....|e..b.f$.|
|00005510| 03 d7 00 1b 65 00 04 65 | 00 56 24 00 03 e8 00 1b |....e..e|.V$.....|
|00005520| 65 00 30 b7 00 74 25 00 | 2c b9 00 50 24 00 2e 45 |e.0..t%.|,..P$..E|
|00005530| 00 09 25 00 37 72 00 49 | 25 00 38 97 00 24 24 00 |..%.7r.I|%.8..$$.|
|00005540| 06 53 00 1b 65 00 32 f1 | 00 8b 24 00 11 78 00 09 |.S..e.2.|..$..x..|
|00005550| 25 00 2e 4e 00 50 24 00 | 2f da 00 09 25 00 39 45 |%..N.P$.|/...%.9E|
|00005560| 00 49 25 00 3a 6b 00 24 | 24 00 04 54 00 1b 65 00 |.I%.:k.$|$..T..e.|
|00005570| 35 7f 00 74 25 00 3b 27 | 00 50 24 00 27 fc 00 09 |5..t%.;'|.P$.'...|
|00005580| 25 00 3c b2 00 49 25 00 | 3d d6 00 24 24 00 04 43 |%.<..I%.|=..$$..C|
|00005590| 00 1b 65 00 3e 85 00 76 | 24 00 15 fe 00 1b 65 00 |..e.>..v|$.....e.|
|000055a0| 49 fa 00 96 24 00 03 f9 | 00 1b 65 00 4c 18 00 a6 |I...$...|..e.L...|
|000055b0| 24 00 11 81 00 1b 65 00 | 16 0f 00 74 64 00 17 f0 |$.....e.|...td...|
|000055c0| 00 09 25 00 4e fe 00 94 | 24 00 04 0a 00 1b 65 00 |..%.N...|$.....e.|
|000055d0| 14 69 00 76 24 00 03 c6 | 00 1b 65 00 29 7a 00 c8 |.i.v$...|..e.)z..|
|000055e0| 24 00 28 05 00 1b 65 00 | 28 10 00 76 24 00 04 1b |$.(...e.|(..v$...|
|000055f0| 00 1b 65 00 05 49 00 56 | 24 00 04 26 00 1b 65 00 |..e..I.V|$..&..e.|
|00005600| 11 92 00 56 04 00 12 71 | 00 1b 65 00 12 76 00 79 |...V...q|..e..v.y|
|00005610| 24 00 3f f0 00 1b | |$.?... | |
+--------+-------------------------+-------------------------+--------+--------+